FR [2975307] - AD_Menu_Trl overwritten by AD_Window
https://sourceforge.net/tracker/index.php?func=detail&aid=2975307&group_id=176962&atid=879335
This commit is contained in:
parent
b4b998f373
commit
6de8036d6d
|
@ -58,7 +58,8 @@ public class SynchronizeTerminology extends SvrProcess
|
||||||
sql="SELECT DISTINCT ColumnName, Name, Description, Help, EntityType "
|
sql="SELECT DISTINCT ColumnName, Name, Description, Help, EntityType "
|
||||||
+"FROM AD_COLUMN c WHERE NOT EXISTS "
|
+"FROM AD_COLUMN c WHERE NOT EXISTS "
|
||||||
+"(SELECT 1 FROM AD_ELEMENT e "
|
+"(SELECT 1 FROM AD_ELEMENT e "
|
||||||
+" WHERE UPPER(c.ColumnName)=UPPER(e.ColumnName))";
|
+" WHERE UPPER(c.ColumnName)=UPPER(e.ColumnName))"
|
||||||
|
+" AND c.isActive = 'Y'";
|
||||||
PreparedStatement pstmt = DB.prepareStatement(sql, get_TrxName());
|
PreparedStatement pstmt = DB.prepareStatement(sql, get_TrxName());
|
||||||
ResultSet rs = pstmt.executeQuery ();
|
ResultSet rs = pstmt.executeQuery ();
|
||||||
while (rs.next()){
|
while (rs.next()){
|
||||||
|
@ -76,12 +77,14 @@ public class SynchronizeTerminology extends SvrProcess
|
||||||
pstmt.close();
|
pstmt.close();
|
||||||
rs.close();
|
rs.close();
|
||||||
trx.commit(true);
|
trx.commit(true);
|
||||||
// Create Elements from Process Parameters
|
// Create Elements for Process Parameters which are centrally maintained
|
||||||
sql="SELECT DISTINCT ColumnName, Name, Description, Help, EntityType "
|
sql="SELECT DISTINCT ColumnName, Name, Description, Help, EntityType "
|
||||||
+" FROM AD_PROCESS_PARA p "
|
+" FROM AD_PROCESS_PARA p "
|
||||||
+" WHERE NOT EXISTS "
|
+" WHERE NOT EXISTS "
|
||||||
+" (SELECT 1 FROM AD_ELEMENT e "
|
+" (SELECT 1 FROM AD_ELEMENT e "
|
||||||
+" WHERE UPPER(p.ColumnName)=UPPER(e.ColumnName))";
|
+" WHERE UPPER(p.ColumnName)=UPPER(e.ColumnName))"
|
||||||
|
+" AND p.isCentrallyMaintained = 'Y'"
|
||||||
|
+" AND p.isActive = 'Y'";
|
||||||
pstmt = DB.prepareStatement(sql, get_TrxName());
|
pstmt = DB.prepareStatement(sql, get_TrxName());
|
||||||
rs = pstmt.executeQuery ();
|
rs = pstmt.executeQuery ();
|
||||||
while (rs.next()){
|
while (rs.next()){
|
||||||
|
|
Loading…
Reference in New Issue