parent
0787b8fd47
commit
c2f79f4795
|
@ -17,23 +17,84 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.apps;
|
package org.compiere.apps;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.BorderLayout;
|
||||||
import java.awt.event.*;
|
import java.awt.Component;
|
||||||
import java.beans.PropertyChangeListener;
|
import java.awt.Cursor;
|
||||||
import java.util.*;
|
import java.awt.Dimension;
|
||||||
import java.util.logging.*;
|
import java.awt.Event;
|
||||||
|
import java.awt.FlowLayout;
|
||||||
|
import java.awt.Image;
|
||||||
|
import java.awt.Point;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.awt.event.InputEvent;
|
||||||
|
import java.awt.event.KeyEvent;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.Properties;
|
||||||
|
import java.util.Vector;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.AbstractAction;
|
||||||
import javax.swing.event.*;
|
import javax.swing.Action;
|
||||||
import org.compiere.apps.search.*;
|
import javax.swing.BorderFactory;
|
||||||
import org.compiere.grid.*;
|
import javax.swing.JDialog;
|
||||||
import org.compiere.grid.ed.*;
|
import javax.swing.JFrame;
|
||||||
import org.compiere.model.*;
|
import javax.swing.JList;
|
||||||
import org.compiere.plaf.*;
|
import javax.swing.JMenu;
|
||||||
import org.compiere.print.*;
|
import javax.swing.JMenuBar;
|
||||||
import org.compiere.process.*;
|
import javax.swing.JOptionPane;
|
||||||
import org.compiere.swing.*;
|
import javax.swing.JPanel;
|
||||||
import org.compiere.util.*;
|
import javax.swing.JScrollPane;
|
||||||
|
import javax.swing.JTabbedPane;
|
||||||
|
import javax.swing.JTable;
|
||||||
|
import javax.swing.JToolBar;
|
||||||
|
import javax.swing.KeyStroke;
|
||||||
|
import javax.swing.ListSelectionModel;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
import javax.swing.event.ChangeEvent;
|
||||||
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
|
import org.compiere.apps.search.Find;
|
||||||
|
import org.compiere.grid.APanelTab;
|
||||||
|
import org.compiere.grid.GridController;
|
||||||
|
import org.compiere.grid.GridSynchronizer;
|
||||||
|
import org.compiere.grid.RecordAccessDialog;
|
||||||
|
import org.compiere.grid.VCreateFrom;
|
||||||
|
import org.compiere.grid.VOnlyCurrentDays;
|
||||||
|
import org.compiere.grid.VPayment;
|
||||||
|
import org.compiere.grid.VSortTab;
|
||||||
|
import org.compiere.grid.VTabbedPane;
|
||||||
|
import org.compiere.grid.ed.VButton;
|
||||||
|
import org.compiere.grid.ed.VDocAction;
|
||||||
|
import org.compiere.model.DataStatusEvent;
|
||||||
|
import org.compiere.model.DataStatusListener;
|
||||||
|
import org.compiere.model.GridField;
|
||||||
|
import org.compiere.model.GridTab;
|
||||||
|
import org.compiere.model.GridWindow;
|
||||||
|
import org.compiere.model.GridWindowVO;
|
||||||
|
import org.compiere.model.GridWorkbench;
|
||||||
|
import org.compiere.model.Lookup;
|
||||||
|
import org.compiere.model.MQuery;
|
||||||
|
import org.compiere.model.MRole;
|
||||||
|
import org.compiere.model.MUser;
|
||||||
|
import org.compiere.model.MWindow;
|
||||||
|
import org.compiere.plaf.CompiereColor;
|
||||||
|
import org.compiere.print.AReport;
|
||||||
|
import org.compiere.process.DocAction;
|
||||||
|
import org.compiere.process.ProcessInfo;
|
||||||
|
import org.compiere.process.ProcessInfoUtil;
|
||||||
|
import org.compiere.swing.CPanel;
|
||||||
|
import org.compiere.util.ASyncProcess;
|
||||||
|
import org.compiere.util.CLogMgt;
|
||||||
|
import org.compiere.util.CLogger;
|
||||||
|
import org.compiere.util.DB;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.Language;
|
||||||
|
import org.compiere.util.Msg;
|
||||||
|
import org.compiere.util.Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main Panel of application window.
|
* Main Panel of application window.
|
||||||
|
@ -63,6 +124,8 @@ import org.compiere.util.*;
|
||||||
public final class APanel extends CPanel
|
public final class APanel extends CPanel
|
||||||
implements DataStatusListener, ChangeListener, ActionListener, ASyncProcess
|
implements DataStatusListener, ChangeListener, ActionListener, ASyncProcess
|
||||||
{
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private boolean isNested = false;
|
private boolean isNested = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1079,7 +1142,7 @@ public final class APanel extends CPanel
|
||||||
boolean back = false;
|
boolean back = false;
|
||||||
boolean isAPanelTab = false;
|
boolean isAPanelTab = false;
|
||||||
|
|
||||||
int previousIndex = 0;
|
//int previousIndex = 0;
|
||||||
|
|
||||||
// Workbench Tab Change
|
// Workbench Tab Change
|
||||||
if (tp.isWorkbench())
|
if (tp.isWorkbench())
|
||||||
|
@ -1166,7 +1229,7 @@ public final class APanel extends CPanel
|
||||||
// if (m_curTabIndex >= 0)
|
// if (m_curTabIndex >= 0)
|
||||||
// m_curWinTab.setForegroundAt(m_curTabIndex, AdempierePLAF.getTextColor_Normal());
|
// m_curWinTab.setForegroundAt(m_curTabIndex, AdempierePLAF.getTextColor_Normal());
|
||||||
// m_curWinTab.setForegroundAt(tpIndex, AdempierePLAF.getTextColor_OK());
|
// m_curWinTab.setForegroundAt(tpIndex, AdempierePLAF.getTextColor_OK());
|
||||||
previousIndex = m_curTabIndex;
|
// previousIndex = m_curTabIndex;
|
||||||
m_curTabIndex = tpIndex;
|
m_curTabIndex = tpIndex;
|
||||||
if (!isAPanelTab) {
|
if (!isAPanelTab) {
|
||||||
m_curGC = gc;
|
m_curGC = gc;
|
||||||
|
@ -1632,8 +1695,8 @@ public final class APanel extends CPanel
|
||||||
StringBuffer displayValue = new StringBuffer();
|
StringBuffer displayValue = new StringBuffer();
|
||||||
if("".equals(m_curTab.getKeyColumnName())){
|
if("".equals(m_curTab.getKeyColumnName())){
|
||||||
ArrayList<String> parentColumnNames = m_curTab.getParentColumnNames();
|
ArrayList<String> parentColumnNames = m_curTab.getParentColumnNames();
|
||||||
for (Iterator iter = parentColumnNames.iterator(); iter.hasNext();) {
|
for (Iterator<String> iter = parentColumnNames.iterator(); iter.hasNext();) {
|
||||||
String columnName = (String) iter.next();
|
String columnName = iter.next();
|
||||||
GridField field = m_curTab.getField(columnName);
|
GridField field = m_curTab.getField(columnName);
|
||||||
if(field.isLookup()){
|
if(field.isLookup()){
|
||||||
Lookup lookup = field.getLookup();
|
Lookup lookup = field.getLookup();
|
||||||
|
@ -2133,7 +2196,7 @@ public final class APanel extends CPanel
|
||||||
log.info(vButton.toString());
|
log.info(vButton.toString());
|
||||||
|
|
||||||
boolean startWOasking = false;
|
boolean startWOasking = false;
|
||||||
boolean batch = false;
|
// boolean batch = false;
|
||||||
String col = vButton.getColumnName();
|
String col = vButton.getColumnName();
|
||||||
|
|
||||||
// Zoom
|
// Zoom
|
||||||
|
@ -2200,7 +2263,7 @@ public final class APanel extends CPanel
|
||||||
vda.setVisible(true);
|
vda.setVisible(true);
|
||||||
if (!vda.isStartProcess())
|
if (!vda.isStartProcess())
|
||||||
return;
|
return;
|
||||||
batch = vda.isBatch();
|
// batch = vda.isBatch();
|
||||||
startWOasking = true;
|
startWOasking = true;
|
||||||
vda.dispose();
|
vda.dispose();
|
||||||
}
|
}
|
||||||
|
@ -2454,7 +2517,8 @@ public final class APanel extends CPanel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class SwitchAction extends AbstractAction {
|
class SwitchAction extends AbstractAction {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** the action listener - APanel */
|
/** the action listener - APanel */
|
||||||
private ActionListener al;
|
private ActionListener al;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue