BF [ 1738641 ] Import Formats are accesible for all tenants

http://sourceforge.net/tracker/index.php?func=detail&aid=1738641&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-06-17 13:45:55 +00:00
parent d18ac7a088
commit 058d554663
1 changed files with 5 additions and 7 deletions

View File

@ -26,6 +26,7 @@ import java.util.logging.*;
import javax.swing.*; import javax.swing.*;
import org.compiere.apps.*; import org.compiere.apps.*;
import org.compiere.impexp.*; import org.compiere.impexp.*;
import org.compiere.model.MRole;
import org.compiere.plaf.*; import org.compiere.plaf.*;
import org.compiere.swing.*; import org.compiere.swing.*;
import org.compiere.util.*; import org.compiere.util.*;
@ -33,15 +34,11 @@ import org.compiere.util.*;
/** /**
* Fixed length file import * Fixed length file import
* <p>
* Change log:
* <ul>
* <li>2007-02-12 - teo_sarca - [ 1658127 ] Select charset encoding on import
* <li>2007-01-27 - teo_sarca - [ 1619158 ] Import is not working with UTF-8
* </ul>
* *
* @author Jorg Janke * @author Jorg Janke
* @version $Id: VFileImport.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $ * @version $Id: VFileImport.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
*
* @author Teo Sarca, FR [ 1658127 ], BF [ 1619158 ], BF [ 1738641 ]
*/ */
public class VFileImport extends CPanel public class VFileImport extends CPanel
implements FormPanel, ActionListener implements FormPanel, ActionListener
@ -171,7 +168,8 @@ public class VFileImport extends CPanel
{ {
// Load Formats // Load Formats
pickFormat.addItem(s_none); pickFormat.addItem(s_none);
String sql = "SELECT Name from AD_ImpFormat"; String sql = MRole.getDefault().addAccessSQL("SELECT Name FROM AD_ImpFormat", "AD_ImpFormat",
MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO);
try try
{ {
PreparedStatement pstmt = DB.prepareStatement(sql, null); PreparedStatement pstmt = DB.prepareStatement(sql, null);