ad_column_trg.sql
来自「Java写的ERP系统」· SQL 代码 · 共 37 行
SQL
37 行
CREATE OR REPLACE TRIGGER AD_Column_Trg
AFTER UPDATE OF Name, Description, Help
ON AD_Column
FOR EACH ROW
DECLARE
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CPM
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: AD_Column_Trg.sql,v 1.6 2002/10/21 04:49:46 jjanke Exp $
***
* Title: Column After Update
* Description:
* Syncronize Name, .. with Field, if centrally maintained
************************************************************************/
BEGIN
/**
* Sync Names
* - Buttons are updated directly
*/
IF (UPDATING AND :new.AD_Reference_ID <> 28) THEN
UPDATE AD_Field
SET Name = :new.Name,
Description = :new.Description,
Help = :new.Help
-- Updated = SysDate
WHERE AD_Column_ID = :new.AD_Column_ID
AND IsCentrallyMaintained='Y';
END IF;
END AD_Column_Trg;
/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?