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

📄 updnotti.pas

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

interface

uses sysUtils, dbtables, bde, updBASE;

type
  TUpdateNOTTI = class(TBaseUpdateUnit)
  private
    function update_byNOTI10(xQrySource: TQuery): Boolean;
  public
    function update(xQrySource: TQuery; xAction: string;
       var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
  end;

implementation

uses LibStrs,CONSTDEF;

function TUpdateNOTTI.update(xQrySource: TQuery; xAction: string;
          var xMsg: variant; xOtherVar: variant; xUserData: variant): Boolean;
begin
  Result := True;
  self.saveVar(xAction, xOtherVar, xUserData);
  try
    self.setDBname(xQrySource.DatabaseName);
    if compareText(self.SourceTxnCode, 'TXNNOTI10') = 0 then
      Result := update_byNOTI10(xQrySource)
    else
    begin
    end;
  finally
    self.Query1.close;
    self.Query2.close;
  end;
  xMsg := self.Msg;
end;

function TUpdateNOTTI.update_byNOTI10(xQrySource: TQuery): Boolean;
var
  mTI003: String;
begin
  Result := True;
  self.Msg[0] := 'skip';
  self.Msg[1] := 'NOTTI';
  With xQrySource do
    self.Msg[2] := FieldByName('TN001').asString+' '+
                   FieldByName('TN002').asString+' '+
                   FieldByName('TN003').asString;

  try
    with self.Query1 do
    begin
      close;
      SQL.clear;
      RequestLive := False;
      SQL.add('select * from $$NOTTI ');
      SQL.add(' where TI001=:TI001 AND TI002=:TI002 ORDER BY TI003 DESC ');
      ParamByName('TI001').asString := xQrySource.FieldByName('TM004').asString;
      ParamByName('TI002').asString := xQrySource.FieldByName('TN005').asString;
      Open;
      first;
      if self.Action = 'A' then
      begin
        if xQrySource.FieldByName('TN004').asString='1' then
        begin
          if eof then //ぃ

⌨️ 快捷键说明

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