From 8589e0ab0411e8e502cf8b65d43dd99c47302688 Mon Sep 17 00:00:00 2001 From: hieplq Date: Fri, 14 Aug 2015 06:59:18 +0800 Subject: [PATCH] IDEMPIERE-2230:Info Window - remember selection during pagination in muilti selection mode, show selected record at status --- .../oracle/201514081982-IDEMPIERE-2230.sql | 10 +++++ .../201514081982-IDEMPIERE-2230.sql | 7 ++++ .../org/adempiere/webui/panel/InfoPanel.java | 38 +++++++++++++++++-- .../adempiere/webui/panel/StatusBarPanel.java | 16 +++++++- .../theme/default/css/fragment/form.css.dsp | 7 ++++ 5 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 migration/i2.1z/oracle/201514081982-IDEMPIERE-2230.sql create mode 100644 migration/i2.1z/postgresql/201514081982-IDEMPIERE-2230.sql diff --git a/migration/i2.1z/oracle/201514081982-IDEMPIERE-2230.sql b/migration/i2.1z/oracle/201514081982-IDEMPIERE-2230.sql new file mode 100644 index 0000000000..498cc92bdd --- /dev/null +++ b/migration/i2.1z/oracle/201514081982-IDEMPIERE-2230.sql @@ -0,0 +1,10 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +-- Aug 14, 2015 6:52:36 AM WITA +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Selected {0} rows',0,0,'Y',TO_DATE('2015-08-14 06:52:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2015-08-14 06:52:36','YYYY-MM-DD HH24:MI:SS'),100,1000000,'IWStatusSelected','D','316251b1-093c-4f33-bf37-4d5af0f000d5') +; +SELECT register_migration_script('201514081982-IDEMPIERE-2230.sql') FROM dual +; + diff --git a/migration/i2.1z/postgresql/201514081982-IDEMPIERE-2230.sql b/migration/i2.1z/postgresql/201514081982-IDEMPIERE-2230.sql new file mode 100644 index 0000000000..6ae7f9ed3e --- /dev/null +++ b/migration/i2.1z/postgresql/201514081982-IDEMPIERE-2230.sql @@ -0,0 +1,7 @@ +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +-- Aug 14, 2015 6:52:36 AM WITA +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Selected {0} rows',0,0,'Y',TO_TIMESTAMP('2015-08-14 06:52:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2015-08-14 06:52:36','YYYY-MM-DD HH24:MI:SS'),100,1000000,'IWStatusSelected','D','316251b1-093c-4f33-bf37-4d5af0f000d5') +; +SELECT register_migration_script('201514081982-IDEMPIERE-2230.sql') FROM dual +; + diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index 5ea27c0d44..41d9cde607 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -113,11 +113,10 @@ import org.zkoss.zul.ext.Sortable; */ public abstract class InfoPanel extends Window implements EventListener, WTableModelListener, Sortable, IHelpContext { - /** * */ - private static final long serialVersionUID = -7706948638874794856L; + private static final long serialVersionUID = 3761627143274259211L; private final static int DEFAULT_PAGE_SIZE = 100; private final static int DEFAULT_PAGE_RELOAD = 4; protected List