IDEMPIERE 85 - Add confirmation on TreeMaintenance when moving all nodes
This commit is contained in:
parent
0aae5a3997
commit
21cba6d7b5
|
@ -0,0 +1,20 @@
|
|||
-- Jul 4, 2012 10:38:00 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,200004,0,TO_DATE('2012-07-04 10:37:58','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Add all items on tree ?','I',TO_DATE('2012-07-04 10:37:58','YYYY-MM-DD HH24:MI:SS'),100,'TreeAddAllItems')
|
||||
;
|
||||
|
||||
-- Jul 4, 2012 10:38:00 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200004 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- Jul 4, 2012 10:38:19 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,200005,0,TO_DATE('2012-07-04 10:38:19','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Remove all items from tree ?','I',TO_DATE('2012-07-04 10:38:19','YYYY-MM-DD HH24:MI:SS'),100,'TreeRemoveAllItems')
|
||||
;
|
||||
|
||||
-- Jul 4, 2012 10:38:19 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200005 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
|
||||
;
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
-- Jul 4, 2012 10:38:00 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,200004,0,TO_TIMESTAMP('2012-07-04 10:37:58','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Add all items on tree ?','I',TO_TIMESTAMP('2012-07-04 10:37:58','YYYY-MM-DD HH24:MI:SS'),100,'TreeAddAllItems')
|
||||
;
|
||||
|
||||
-- Jul 4, 2012 10:38:01 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200004 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
|
||||
;
|
||||
|
||||
-- Jul 4, 2012 10:38:19 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,200005,0,TO_TIMESTAMP('2012-07-04 10:38:19','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Remove all items from tree ?','I',TO_TIMESTAMP('2012-07-04 10:38:19','YYYY-MM-DD HH24:MI:SS'),100,'TreeRemoveAllItems')
|
||||
;
|
||||
|
||||
-- Jul 4, 2012 10:38:19 AM CEST
|
||||
-- IDEMPIERE-85 Add confirmation on TreeMaintenance when moving all nodes
|
||||
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200005 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
|
||||
;
|
||||
|
|
@ -298,7 +298,7 @@ public class VTreeMaintenance extends TreeMaintenance
|
|||
*/
|
||||
private void action_treeAddAll()
|
||||
{
|
||||
if (ADialog.ask(m_WindowNo, null, "Add all item(s) on tree?")) { // idempiere-85
|
||||
if (ADialog.ask(m_WindowNo, null, "TreeAddAllItems")) { // idempiere-85
|
||||
log.info("");
|
||||
ListModel model = centerList.getModel();
|
||||
int size = model.getSize();
|
||||
|
@ -316,7 +316,7 @@ public class VTreeMaintenance extends TreeMaintenance
|
|||
*/
|
||||
private void action_treeDeleteAll()
|
||||
{
|
||||
if (ADialog.ask(m_WindowNo, null, "Remove all item(s) from tree?")) { // idempiere-85
|
||||
if (ADialog.ask(m_WindowNo, null, "TreeRemoveAllItems")) { // idempiere-85
|
||||
log.info("");
|
||||
ListModel model = centerList.getModel();
|
||||
int size = model.getSize();
|
||||
|
|
|
@ -388,7 +388,7 @@ public class WTreeMaintenance extends TreeMaintenance implements IFormController
|
|||
*/
|
||||
private void action_treeAddAll()
|
||||
{
|
||||
if (FDialog.ask(m_WindowNo, null, "Add all item(s) on tree?")) {
|
||||
if (FDialog.ask(m_WindowNo, null, "TreeAddAllItems")) { // idempiere-85
|
||||
log.info("");
|
||||
ListModel model = centerList.getModel();
|
||||
int size = model.getSize();
|
||||
|
@ -407,8 +407,7 @@ public class WTreeMaintenance extends TreeMaintenance implements IFormController
|
|||
private void action_treeDeleteAll()
|
||||
{
|
||||
log.info("");
|
||||
//TODO: translation
|
||||
if (FDialog.ask(m_WindowNo, null, "Remove all item(s) from tree?")) {
|
||||
if (FDialog.ask(m_WindowNo, null, "TreeRemoveAllItems")) { // idempiere-85
|
||||
ListModel model = centerList.getModel();
|
||||
int size = model.getSize();
|
||||
int index = -1;
|
||||
|
|
Loading…
Reference in New Issue