BF [ 1963128 ] Running a process w/o trl should display an error
This commit is contained in:
parent
3178d74907
commit
e8d64525fe
|
@ -22,6 +22,7 @@ import java.sql.*;
|
||||||
import java.util.logging.*;
|
import java.util.logging.*;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
|
||||||
|
import org.adempiere.exceptions.AdempiereException;
|
||||||
import org.compiere.print.*;
|
import org.compiere.print.*;
|
||||||
import org.compiere.process.*;
|
import org.compiere.process.*;
|
||||||
import org.compiere.swing.*;
|
import org.compiere.swing.*;
|
||||||
|
@ -42,6 +43,7 @@ import org.compiere.util.*;
|
||||||
* - Implement ShowHelp option on processes and reports
|
* - Implement ShowHelp option on processes and reports
|
||||||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
* <li>BF [ 1893525 ] ProcessDialog: Cannot select the text from text field
|
* <li>BF [ 1893525 ] ProcessDialog: Cannot select the text from text field
|
||||||
|
* <li>BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
*/
|
*/
|
||||||
public class ProcessDialog extends CFrame
|
public class ProcessDialog extends CFrame
|
||||||
implements ActionListener, ASyncProcess
|
implements ActionListener, ASyncProcess
|
||||||
|
@ -244,8 +246,9 @@ public class ProcessDialog extends CFrame
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_Name == null)
|
if (m_Name == null) {
|
||||||
return false;
|
throw new AdempiereException("@NotFound@ @AD_Process_ID@="+m_AD_Process_ID+". @CheckMissingTrl@");
|
||||||
|
}
|
||||||
//
|
//
|
||||||
this.setTitle(m_Name);
|
this.setTitle(m_Name);
|
||||||
message.setText(m_messageText.toString());
|
message.setText(m_messageText.toString());
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
-- 20.06.2008 14:06:53 EEST
|
||||||
|
-- BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
|
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53038,0,TO_DATE('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Check Missing Translation Records','E',TO_DATE('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'CheckMissingTrl')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 20.06.2008 14:06:53 EEST
|
||||||
|
-- BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
|
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=53038 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 20.06.2008 14:08:39 EEST
|
||||||
|
-- BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
|
UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Lipsesc liniile de traducere',Updated=TO_DATE('2008-06-20 14:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=53038 AND AD_Language='ro_RO'
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
-- 20.06.2008 14:06:53 EEST
|
||||||
|
-- BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
|
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53038,0,TO_TIMESTAMP('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Check Missing Translation Records','E',TO_TIMESTAMP('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'CheckMissingTrl')
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 20.06.2008 14:06:53 EEST
|
||||||
|
-- BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
|
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=53038 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- 20.06.2008 14:08:39 EEST
|
||||||
|
-- BF [ 1963128 ] Running a process w/o trl should display an error
|
||||||
|
UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Lipsesc liniile de traducere',Updated=TO_TIMESTAMP('2008-06-20 14:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=53038 AND AD_Language='ro_RO'
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue