svn commit: r428276 - in /incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen: PosScreen.java Sales.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r428276 - in /incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen: PosScreen.java Sales.java

jleroux@apache.org
Author: jleroux
Date: Thu Aug  3 00:29:22 2006
New Revision: 428276

URL: http://svn.apache.org/viewvc?rev=428276&view=rev
Log:
path to sales.xml is now dynamic

Modified:
    incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/PosScreen.java
    incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/Sales.java

Modified: incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/PosScreen.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/PosScreen.java?rev=428276&r1=428275&r2=428276&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/PosScreen.java (original)
+++ incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/PosScreen.java Thu Aug  3 00:29:22 2006
@@ -374,7 +374,7 @@
         }
     }
 
-    private String getScreenLocation() {
+    public String getScreenLocation() {
         if (this.scrLocation == null) {
             synchronized(this) {
                 if (this.scrLocation == null) {

Modified: incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/Sales.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/Sales.java?rev=428276&r1=428275&r2=428276&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/Sales.java (original)
+++ incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/screen/Sales.java Thu Aug  3 00:29:22 2006
@@ -27,6 +27,7 @@
 import net.xoetrope.swing.XDialog;
 import net.xoetrope.swing.XList;
 import net.xoetrope.xui.XPage;
+import net.xoetrope.xui.XProjectManager;
 
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.UtilProperties;
@@ -63,7 +64,7 @@
  }
 
     public void openDlg() {
-     XDialog dlg = (XDialog) pageMgr.loadPage("default/includes/sales");
+     XDialog dlg = (XDialog) pageMgr.loadPage(m_page.getScreenLocation() + "/includes/sales");
      m_dialog = dlg;
      dlg.setCaption(UtilProperties.getMessage("pos", "LoadASale", Locale.getDefault()));
      m_salesList = (XList) dlg.findComponent("salesList");