From 13508e691615b35bace2b1bc5e0086b6bb8492bf Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 26 Feb 2007 13:06:41 +0000 Subject: [PATCH] BF [ 1622855 ] Show Implementation Vendor / Version in Help-About --- dbPort/src/org/compiere/util/CLogMgt.java | 4 ++ .../008_add_message_Implementation.sql | 48 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 migration/314-trunk/008_add_message_Implementation.sql diff --git a/dbPort/src/org/compiere/util/CLogMgt.java b/dbPort/src/org/compiere/util/CLogMgt.java index 82d3c59bb5..7fb24220f9 100644 --- a/dbPort/src/org/compiere/util/CLogMgt.java +++ b/dbPort/src/org/compiere/util/CLogMgt.java @@ -494,6 +494,10 @@ public class CLogMgt } } } + // Show Implementation Vendor / Version - teo_sarca, [ 1622855 ] + sb.append(getMsg("ImplementationVendor")).append(eq).append(org.compiere.Adempiere.getImplementationVendor()).append(NL); + sb.append(getMsg("ImplementationVersion")).append(eq).append(org.compiere.Adempiere.getImplementationVersion()).append(NL); + // sb.append("AdempiereHome = ").append(Adempiere.getAdempiereHome()).append(NL); sb.append(Env.getLanguage(Env.getCtx())).append(NL); MClient client = MClient.get(Env.getCtx()); diff --git a/migration/314-trunk/008_add_message_Implementation.sql b/migration/314-trunk/008_add_message_Implementation.sql new file mode 100644 index 0000000000..a2cc60a47b --- /dev/null +++ b/migration/314-trunk/008_add_message_Implementation.sql @@ -0,0 +1,48 @@ +INSERT INTO ad_message + (ad_message_id, ad_client_id, ad_org_id, isactive, created, + createdby, updated, updatedby, VALUE, + msgtext, msgtip, msgtype, entitytype + ) + values ( + 50008,0,0,'Y',to_date('26-02-2007','DD-MM-RRRR'), + 0,to_date('26-02-2007','DD-MM-RRRR'),0,'ImplementationVendor', + 'Implementation Vendor',null,'I','D' + ); + +INSERT INTO ad_message + (ad_message_id, ad_client_id, ad_org_id, isactive, created, + createdby, updated, updatedby, VALUE, + msgtext, msgtip, msgtype, entitytype + ) + values ( + 50009,0,0,'Y',to_date('26-02-2007','DD-MM-RRRR'), + 0,to_date('26-02-2007','DD-MM-RRRR'),0,'ImplementationVersion', + 'Implementation Version',null,'I','D' + ); + +INSERT INTO ad_message_trl + (ad_message_id, ad_language, ad_client_id, ad_org_id, isactive, + created, createdby, updated, updatedby, msgtext, msgtip, + istranslated) + SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y', + m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip, + 'N' + FROM ad_message m, ad_language lang + WHERE m.ad_message_id in (50008, 50009) + AND lang.issystemlanguage = 'Y' + AND lang.isbaselanguage = 'N' + AND NOT EXISTS ( + SELECT * + FROM ad_message_trl m2 + WHERE m2.ad_message_id = m.ad_message_id + AND m2.ad_language = lang.ad_language); + +COMMIT ; + +UPDATE ad_sequence + SET currentnextsys = (SELECT MAX (ad_message_id) + 1 + FROM ad_message + WHERE ad_message_id < 1000000) + WHERE NAME = 'AD_Message'; + +COMMIT ;