Merge f23a102ab4bb
This commit is contained in:
commit
1dde3e4227
|
@ -0,0 +1,18 @@
|
||||||
|
-- Dec 19, 2012 11:41:02 PM COT
|
||||||
|
-- Drop deprecated connection profile
|
||||||
|
UPDATE AD_Field SET IsDisplayed='N', IsActive='N',Updated=TO_DATE('2012-12-19 23:41:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12640
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 19, 2012 11:41:44 PM COT
|
||||||
|
-- Drop deprecated connection profile
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2012-12-19 23:41:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14619
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 19, 2012 11:43:43 PM COT
|
||||||
|
-- Drop deprecated connection profile
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2012-12-19 23:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14618
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201212192345_IDEMPIERE-362_ConnectionProfile.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
-- Dec 19, 2012 11:41:02 PM COT
|
||||||
|
-- Drop deprecated connection profile
|
||||||
|
UPDATE AD_Field SET IsDisplayed='N', IsActive='N',Updated=TO_TIMESTAMP('2012-12-19 23:41:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12640
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 19, 2012 11:41:44 PM COT
|
||||||
|
-- Drop deprecated connection profile
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2012-12-19 23:41:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14619
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Dec 19, 2012 11:43:43 PM COT
|
||||||
|
-- Drop deprecated connection profile
|
||||||
|
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2012-12-19 23:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14618
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201212192345_IDEMPIERE-362_ConnectionProfile.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -32,7 +32,6 @@ import org.compiere.interfaces.Server;
|
||||||
import org.compiere.interfaces.Status;
|
import org.compiere.interfaces.Status;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.Ini;
|
import org.compiere.util.Ini;
|
||||||
import org.compiere.util.ValueNamePair;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adempiere Connection Descriptor
|
* Adempiere Connection Descriptor
|
||||||
|
@ -44,34 +43,15 @@ import org.compiere.util.ValueNamePair;
|
||||||
public class CConnection implements Serializable, Cloneable
|
public class CConnection implements Serializable, Cloneable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -7893119456331485444L;
|
private static final long serialVersionUID = -858558852550858165L;
|
||||||
|
|
||||||
/** Connection */
|
/** Connection */
|
||||||
private volatile static CConnection s_cc = null;
|
private volatile static CConnection s_cc = null;
|
||||||
/** Logger */
|
/** Logger */
|
||||||
private static CLogger log = CLogger.getCLogger (CConnection.class);
|
private static CLogger log = CLogger.getCLogger (CConnection.class);
|
||||||
|
|
||||||
/** Connection profiles */
|
|
||||||
@Deprecated
|
|
||||||
public static ValueNamePair[] CONNECTIONProfiles = new ValueNamePair[]{
|
|
||||||
new ValueNamePair("L", "LAN")};
|
|
||||||
|
|
||||||
/** Connection Profile LAN */
|
|
||||||
@Deprecated
|
|
||||||
public static final String PROFILE_LAN = "L";
|
|
||||||
/**
|
|
||||||
* Connection Profile Terminal Server
|
|
||||||
* @deprecated
|
|
||||||
**/
|
|
||||||
public static final String PROFILE_TERMINAL = "T";
|
|
||||||
/** Connection Profile VPM */
|
|
||||||
@Deprecated
|
|
||||||
public static final String PROFILE_VPN = "V";
|
|
||||||
/** Connection Profile WAN */
|
|
||||||
@Deprecated
|
|
||||||
public static final String PROFILE_WAN = "W";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get/Set default client/server Connection
|
* Get/Set default client/server Connection
|
||||||
* @return Connection Descriptor
|
* @return Connection Descriptor
|
||||||
|
@ -98,7 +78,6 @@ public class CConnection implements Serializable, Cloneable
|
||||||
if (apps_host != null && Adempiere.isWebStartClient())
|
if (apps_host != null && Adempiere.isWebStartClient())
|
||||||
{
|
{
|
||||||
cc = new CConnection(apps_host);
|
cc = new CConnection(apps_host);
|
||||||
cc.setConnectionProfile(CConnection.PROFILE_LAN);
|
|
||||||
if (cc.testAppsServer() == null)
|
if (cc.testAppsServer() == null)
|
||||||
{
|
{
|
||||||
s_cc = cc;
|
s_cc = cc;
|
||||||
|
@ -553,77 +532,6 @@ public class CConnection implements Serializable, Cloneable
|
||||||
return false;
|
return false;
|
||||||
} // isRMIoverHTTP
|
} // isRMIoverHTTP
|
||||||
|
|
||||||
/**
|
|
||||||
* Set Connection Profile
|
|
||||||
* @param connectionProfile connection profile
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public void setConnectionProfile (ValueNamePair connectionProfile)
|
|
||||||
{
|
|
||||||
if (connectionProfile != null)
|
|
||||||
setConnectionProfile(PROFILE_LAN);
|
|
||||||
} // setConnectionProfile
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set Connection Profile
|
|
||||||
* @param connectionProfile connection profile
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public void setConnectionProfile (String connectionProfile)
|
|
||||||
{
|
|
||||||
} // setConnectionProfile
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Connection Profile
|
|
||||||
* @return connection profile
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public String getConnectionProfile ()
|
|
||||||
{
|
|
||||||
return PROFILE_LAN;
|
|
||||||
} // getConnectionProfile
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Connection Profile Text
|
|
||||||
* @param connectionProfile
|
|
||||||
* @return connection profile text
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public String getConnectionProfileText (String connectionProfile)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < CONNECTIONProfiles.length; i++)
|
|
||||||
{
|
|
||||||
if (CONNECTIONProfiles[i].getValue().equals(connectionProfile))
|
|
||||||
return CONNECTIONProfiles[i].getName();
|
|
||||||
}
|
|
||||||
return CONNECTIONProfiles[0].getName();
|
|
||||||
} // getConnectionProfileText
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Connection Profile Text
|
|
||||||
* @return connection profile text
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public String getConnectionProfileText ()
|
|
||||||
{
|
|
||||||
return getConnectionProfileText(getConnectionProfile());
|
|
||||||
} // getConnectionProfileText
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get Connection Profile
|
|
||||||
* @return connection profile
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public ValueNamePair getConnectionProfilePair ()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < CONNECTIONProfiles.length; i++)
|
|
||||||
{
|
|
||||||
if (CONNECTIONProfiles[i].getValue().equals(getConnectionProfile()))
|
|
||||||
return CONNECTIONProfiles[i];
|
|
||||||
}
|
|
||||||
return CONNECTIONProfiles[0];
|
|
||||||
} // getConnectionProfilePair
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should objects be created on Server ?
|
* Should objects be created on Server ?
|
||||||
* @return true if client and VPN/WAN
|
* @return true if client and VPN/WAN
|
||||||
|
|
|
@ -258,19 +258,6 @@ public interface I_AD_Role
|
||||||
*/
|
*/
|
||||||
public int getConfirmQueryRecords();
|
public int getConfirmQueryRecords();
|
||||||
|
|
||||||
/** Column name ConnectionProfile */
|
|
||||||
public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile";
|
|
||||||
|
|
||||||
/** Set Connection Profile.
|
|
||||||
* How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public void setConnectionProfile (String ConnectionProfile);
|
|
||||||
|
|
||||||
/** Get Connection Profile.
|
|
||||||
* How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public String getConnectionProfile();
|
|
||||||
|
|
||||||
/** Column name Created */
|
/** Column name Created */
|
||||||
public static final String COLUMNNAME_Created = "Created";
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
|
|
@ -192,19 +192,6 @@ public interface I_AD_User
|
||||||
*/
|
*/
|
||||||
public String getComments();
|
public String getComments();
|
||||||
|
|
||||||
/** Column name ConnectionProfile */
|
|
||||||
public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile";
|
|
||||||
|
|
||||||
/** Set Connection Profile.
|
|
||||||
* How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public void setConnectionProfile (String ConnectionProfile);
|
|
||||||
|
|
||||||
/** Get Connection Profile.
|
|
||||||
* How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public String getConnectionProfile();
|
|
||||||
|
|
||||||
/** Column name Created */
|
/** Column name Created */
|
||||||
public static final String COLUMNNAME_Created = "Created";
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20121031L;
|
private static final long serialVersionUID = 20121219L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
|
public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
|
||||||
|
@ -518,34 +518,6 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ConnectionProfile AD_Reference_ID=364 */
|
|
||||||
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
|
|
||||||
/** LAN = L */
|
|
||||||
public static final String CONNECTIONPROFILE_LAN = "L";
|
|
||||||
/** Terminal Server = T */
|
|
||||||
public static final String CONNECTIONPROFILE_TerminalServer = "T";
|
|
||||||
/** VPN = V */
|
|
||||||
public static final String CONNECTIONPROFILE_VPN = "V";
|
|
||||||
/** WAN = W */
|
|
||||||
public static final String CONNECTIONPROFILE_WAN = "W";
|
|
||||||
/** Set Connection Profile.
|
|
||||||
@param ConnectionProfile
|
|
||||||
How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public void setConnectionProfile (String ConnectionProfile)
|
|
||||||
{
|
|
||||||
|
|
||||||
set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Connection Profile.
|
|
||||||
@return How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public String getConnectionProfile ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_ConnectionProfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Days Approval Accumulated.
|
/** Set Days Approval Accumulated.
|
||||||
@param DaysApprovalAccum
|
@param DaysApprovalAccum
|
||||||
The days approval indicates the days to take into account to verify the accumulated approval amount.
|
The days approval indicates the days to take into account to verify the accumulated approval amount.
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20121031L;
|
private static final long serialVersionUID = 20121219L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_User (Properties ctx, int AD_User_ID, String trxName)
|
public X_AD_User (Properties ctx, int AD_User_ID, String trxName)
|
||||||
|
@ -306,34 +306,6 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return (String)get_Value(COLUMNNAME_Comments);
|
return (String)get_Value(COLUMNNAME_Comments);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ConnectionProfile AD_Reference_ID=364 */
|
|
||||||
public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
|
|
||||||
/** LAN = L */
|
|
||||||
public static final String CONNECTIONPROFILE_LAN = "L";
|
|
||||||
/** Terminal Server = T */
|
|
||||||
public static final String CONNECTIONPROFILE_TerminalServer = "T";
|
|
||||||
/** VPN = V */
|
|
||||||
public static final String CONNECTIONPROFILE_VPN = "V";
|
|
||||||
/** WAN = W */
|
|
||||||
public static final String CONNECTIONPROFILE_WAN = "W";
|
|
||||||
/** Set Connection Profile.
|
|
||||||
@param ConnectionProfile
|
|
||||||
How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public void setConnectionProfile (String ConnectionProfile)
|
|
||||||
{
|
|
||||||
|
|
||||||
set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Connection Profile.
|
|
||||||
@return How a Java Client connects to the server(s)
|
|
||||||
*/
|
|
||||||
public String getConnectionProfile ()
|
|
||||||
{
|
|
||||||
return (String)get_Value(COLUMNNAME_ConnectionProfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set Date Account Locked.
|
/** Set Date Account Locked.
|
||||||
@param DateAccountLocked Date Account Locked */
|
@param DateAccountLocked Date Account Locked */
|
||||||
public void setDateAccountLocked (Timestamp DateAccountLocked)
|
public void setDateAccountLocked (Timestamp DateAccountLocked)
|
||||||
|
|
|
@ -157,9 +157,6 @@ public class Login
|
||||||
private static CLogger log = CLogger.getCLogger(Login.class);
|
private static CLogger log = CLogger.getCLogger(Login.class);
|
||||||
/** Context */
|
/** Context */
|
||||||
private Properties m_ctx = null;
|
private Properties m_ctx = null;
|
||||||
/** Connection Profile */
|
|
||||||
private String m_connectionProfile = null;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (Test) Client Login.
|
* (Test) Client Login.
|
||||||
|
@ -409,18 +406,6 @@ public class Login
|
||||||
Ini.setProperty(Ini.P_UID, "");
|
Ini.setProperty(Ini.P_UID, "");
|
||||||
if (Ini.isPropertyBool(Ini.P_STORE_PWD) && MSystem.isSwingRememberPasswordAllowed())
|
if (Ini.isPropertyBool(Ini.P_STORE_PWD) && MSystem.isSwingRememberPasswordAllowed())
|
||||||
Ini.setProperty(Ini.P_PWD, app_pwd);
|
Ini.setProperty(Ini.P_PWD, app_pwd);
|
||||||
|
|
||||||
m_connectionProfile = rs.getString(4); // User Based
|
|
||||||
if (m_connectionProfile != null)
|
|
||||||
{
|
|
||||||
CConnection cc = CConnection.get();
|
|
||||||
if (!cc.getConnectionProfile().equals(m_connectionProfile))
|
|
||||||
{
|
|
||||||
cc.setConnectionProfile(m_connectionProfile);
|
|
||||||
Ini.setProperty(Ini.P_CONNECTION, cc.toStringLong());
|
|
||||||
Ini.saveProperties(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do // read all roles
|
do // read all roles
|
||||||
|
@ -508,20 +493,6 @@ public class Login
|
||||||
// User Level
|
// User Level
|
||||||
Env.setContext(m_ctx, "#User_Level", rs.getString(1)); // Format 'SCO'
|
Env.setContext(m_ctx, "#User_Level", rs.getString(1)); // Format 'SCO'
|
||||||
|
|
||||||
// ConnectionProfile
|
|
||||||
CConnection cc = CConnection.get();
|
|
||||||
if (m_connectionProfile == null) // No User Based
|
|
||||||
{
|
|
||||||
m_connectionProfile = rs.getString(2); // Role Based
|
|
||||||
if (m_connectionProfile != null
|
|
||||||
&& !cc.getConnectionProfile().equals(m_connectionProfile))
|
|
||||||
{
|
|
||||||
cc.setConnectionProfile(m_connectionProfile);
|
|
||||||
Ini.setProperty(Ini.P_CONNECTION, cc.toStringLong());
|
|
||||||
Ini.saveProperties(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// load Clients
|
// load Clients
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -615,18 +586,6 @@ public class Login
|
||||||
Ini.setProperty(Ini.P_ROLE, rol.getName());
|
Ini.setProperty(Ini.P_ROLE, rol.getName());
|
||||||
// User Level
|
// User Level
|
||||||
Env.setContext(m_ctx, "#User_Level", rs.getString(1)); // Format 'SCO'
|
Env.setContext(m_ctx, "#User_Level", rs.getString(1)); // Format 'SCO'
|
||||||
// ConnectionProfile
|
|
||||||
CConnection cc = CConnection.get();
|
|
||||||
if (m_connectionProfile == null) // No User Based
|
|
||||||
{
|
|
||||||
m_connectionProfile = rs.getString(2); // Role Based
|
|
||||||
if (m_connectionProfile != null && !cc.getConnectionProfile().equals(m_connectionProfile))
|
|
||||||
{
|
|
||||||
cc.setConnectionProfile(m_connectionProfile);
|
|
||||||
Ini.setProperty(Ini.P_CONNECTION, cc.toStringLong());
|
|
||||||
Ini.saveProperties(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// load Orgs
|
// load Orgs
|
||||||
|
|
||||||
do{
|
do{
|
||||||
|
|
|
@ -17,4 +17,4 @@ goto START
|
||||||
@Echo Starting Adempiere Client ...
|
@Echo Starting Adempiere Client ...
|
||||||
@Echo =======================================
|
@Echo =======================================
|
||||||
|
|
||||||
@"%JAVA%" -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -Dosgi.compatibility.bootdelegation=true -XX:MaxPermSize=192m -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -application org.adempiere.ui.swing.client
|
@"%JAVA%" -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -Dosgi.compatibility.bootdelegation=true -XX:MaxPermSize=192m -jar plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.ui.swing.client
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
|
# script parameters are used as VM args. e.g.:
|
||||||
|
# ./adempiere-client.sh -DPropertyFile=/home/tbayen/idempiere-conf2.properties
|
||||||
|
# -- tbayen
|
||||||
|
|
||||||
if [ $JAVA_HOME ]; then
|
if [ $JAVA_HOME ]; then
|
||||||
JAVA=$JAVA_HOME/bin/java
|
JAVA=$JAVA_HOME/bin/java
|
||||||
else
|
else
|
||||||
|
@ -13,4 +17,4 @@ echo ===================================
|
||||||
echo Starting Adempiere Client
|
echo Starting Adempiere Client
|
||||||
echo ===================================
|
echo ===================================
|
||||||
|
|
||||||
$JAVA -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -Dosgi.compatibility.bootdelegation=true -XX:MaxPermSize=192m -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -application org.adempiere.ui.swing.client
|
$JAVA -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -Dosgi.compatibility.bootdelegation=true $@ -XX:MaxPermSize=192m -jar plugins/org.eclipse.equinox.launcher_ 1.*.jar -application org.adempiere.ui.swing.client
|
||||||
|
|
|
@ -49,7 +49,6 @@ import javax.swing.table.DefaultTableModel;
|
||||||
|
|
||||||
import org.adempiere.plaf.AdempierePLAF;
|
import org.adempiere.plaf.AdempierePLAF;
|
||||||
import org.adempiere.plaf.PLAFEditorPanel;
|
import org.adempiere.plaf.PLAFEditorPanel;
|
||||||
import org.compiere.db.CConnection;
|
|
||||||
import org.compiere.grid.ed.VDate;
|
import org.compiere.grid.ed.VDate;
|
||||||
import org.compiere.minigrid.MiniTable;
|
import org.compiere.minigrid.MiniTable;
|
||||||
import org.compiere.model.MRole;
|
import org.compiere.model.MRole;
|
||||||
|
@ -93,7 +92,7 @@ public final class Preference extends CDialog
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -8923143271736597338L;
|
private static final long serialVersionUID = -4691368295400769754L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard Constructor
|
* Standard Constructor
|
||||||
|
@ -165,8 +164,6 @@ public final class Preference extends CDialog
|
||||||
private CPrinter fPrinter = new CPrinter();
|
private CPrinter fPrinter = new CPrinter();
|
||||||
private CLabel lDate = new CLabel();
|
private CLabel lDate = new CLabel();
|
||||||
private VDate fDate = new VDate();
|
private VDate fDate = new VDate();
|
||||||
private CComboBox connectionProfile = new CComboBox(CConnection.CONNECTIONProfiles);
|
|
||||||
private CLabel connectionProfileLabel = new CLabel();
|
|
||||||
private CPanel errorPane = new CPanel();
|
private CPanel errorPane = new CPanel();
|
||||||
private BorderLayout errorLayout = new BorderLayout();
|
private BorderLayout errorLayout = new BorderLayout();
|
||||||
private JScrollPane errorScrollPane = new JScrollPane();
|
private JScrollPane errorScrollPane = new JScrollPane();
|
||||||
|
@ -239,7 +236,6 @@ public final class Preference extends CDialog
|
||||||
showAcct.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowAcctTab", false));
|
showAcct.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowAcctTab", false));
|
||||||
showAdvanced.setText(Msg.getMsg(Env.getCtx(), "ShowAdvancedTab", true));
|
showAdvanced.setText(Msg.getMsg(Env.getCtx(), "ShowAdvancedTab", true));
|
||||||
showAdvanced.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowAdvancedTab", false));
|
showAdvanced.setToolTipText(Msg.getMsg(Env.getCtx(), "ShowAdvancedTab", false));
|
||||||
connectionProfileLabel.setText(Msg.getElement(Env.getCtx(), "ConnectionProfile"));
|
|
||||||
cacheWindow.setText(Msg.getMsg(Env.getCtx(), "CacheWindow", true));
|
cacheWindow.setText(Msg.getMsg(Env.getCtx(), "CacheWindow", true));
|
||||||
cacheWindow.setToolTipText(Msg.getMsg(Env.getCtx(), "CacheWindow", false));
|
cacheWindow.setToolTipText(Msg.getMsg(Env.getCtx(), "CacheWindow", false));
|
||||||
lPrinter.setText(Msg.getMsg(Env.getCtx(), "Printer"));
|
lPrinter.setText(Msg.getMsg(Env.getCtx(), "Printer"));
|
||||||
|
@ -288,10 +284,6 @@ public final class Preference extends CDialog
|
||||||
CPanel connPanel = new CPanel();
|
CPanel connPanel = new CPanel();
|
||||||
connPanel.setBorder(BorderFactory.createTitledBorder(Msg.getMsg(Env.getCtx(), "Connection")));
|
connPanel.setBorder(BorderFactory.createTitledBorder(Msg.getMsg(Env.getCtx(), "Connection")));
|
||||||
connPanel.setLayout(new GridBagLayout());
|
connPanel.setLayout(new GridBagLayout());
|
||||||
connPanel.add(connectionProfileLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
|
|
||||||
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 2, 2, 0), 0, 0));
|
|
||||||
connPanel.add(connectionProfile, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0
|
|
||||||
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 2, 2, 0), 0, 0));
|
|
||||||
connPanel.add(validateConnectionOnStartup, new GridBagConstraints(0, 1, 2, 1, 1.0, 0.0
|
connPanel.add(validateConnectionOnStartup, new GridBagConstraints(0, 1, 2, 1, 1.0, 0.0
|
||||||
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 2, 2, 0), 0, 0));
|
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(2, 2, 2, 0), 0, 0));
|
||||||
customizePane.add(connPanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0
|
customizePane.add(connPanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0
|
||||||
|
@ -505,17 +497,6 @@ public final class Preference extends CDialog
|
||||||
showTrl.setSelected(Ini.isPropertyBool(Ini.P_SHOW_TRL));
|
showTrl.setSelected(Ini.isPropertyBool(Ini.P_SHOW_TRL));
|
||||||
showAdvanced.setSelected(Ini.isPropertyBool(Ini.P_SHOW_ADVANCED));
|
showAdvanced.setSelected(Ini.isPropertyBool(Ini.P_SHOW_ADVANCED));
|
||||||
|
|
||||||
// Connection Profile
|
|
||||||
MUser user = MUser.get(Env.getCtx());
|
|
||||||
String cp = user.getConnectionProfile();
|
|
||||||
if (cp == null)
|
|
||||||
cp = MRole.getDefault().getConnectionProfile();
|
|
||||||
if (cp != null)
|
|
||||||
{
|
|
||||||
CConnection.get().setConnectionProfile(cp);
|
|
||||||
connectionProfile.setReadWrite(false);
|
|
||||||
}
|
|
||||||
connectionProfile.setSelectedItem(CConnection.get().getConnectionProfilePair());
|
|
||||||
cacheWindow.setSelected(Ini.isCacheWindow());
|
cacheWindow.setSelected(Ini.isCacheWindow());
|
||||||
|
|
||||||
// Print Preview
|
// Print Preview
|
||||||
|
@ -594,14 +575,6 @@ public final class Preference extends CDialog
|
||||||
Ini.setProperty(Ini.P_SHOW_ADVANCED, (showAdvanced.isSelected()));
|
Ini.setProperty(Ini.P_SHOW_ADVANCED, (showAdvanced.isSelected()));
|
||||||
Env.setContext(Env.getCtx(), "#ShowAdvanced", (showAdvanced.isSelected()));
|
Env.setContext(Env.getCtx(), "#ShowAdvanced", (showAdvanced.isSelected()));
|
||||||
|
|
||||||
// ConnectionProfile
|
|
||||||
ValueNamePair ppNew = (ValueNamePair)connectionProfile.getSelectedItem();
|
|
||||||
String cpNew = ppNew.getValue();
|
|
||||||
String cpOld = CConnection.get().getConnectionProfile();
|
|
||||||
CConnection.get().setConnectionProfile(cpNew);
|
|
||||||
if (!cpNew.equals(cpOld)
|
|
||||||
&& (cpNew.equals(CConnection.PROFILE_WAN) || cpOld.equals(CConnection.PROFILE_WAN)))
|
|
||||||
ADialog.info(0, this, "ConnectionProfileChange");
|
|
||||||
Ini.setProperty(Ini.P_CACHE_WINDOW, cacheWindow.isSelected());
|
Ini.setProperty(Ini.P_CACHE_WINDOW, cacheWindow.isSelected());
|
||||||
|
|
||||||
// Print Preview
|
// Print Preview
|
||||||
|
|
|
@ -276,25 +276,23 @@ public class ValuePreference extends Window implements EventListener<Event>
|
||||||
rows.setParent(setLayout);
|
rows.setParent(setLayout);
|
||||||
|
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
row.setSpans("1, 4, 1");
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setStyle("text-align: right");
|
div.setStyle("text-align: right");
|
||||||
div.appendChild(lAttribute);
|
div.appendChild(lAttribute);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(fAttribute);
|
row.appendCellChild(fAttribute, 4);
|
||||||
fAttribute.setWidth("100%");
|
fAttribute.setWidth("100%");
|
||||||
row.appendChild(lAttributeValue);
|
row.appendCellChild(lAttributeValue, 1);
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 4, 1");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setStyle("text-align: right");
|
div.setStyle("text-align: right");
|
||||||
div.appendChild(lValue);
|
div.appendChild(lValue);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(fValue);
|
row.appendCellChild(fValue, 4);
|
||||||
fValue.setWidth("100%");
|
fValue.setWidth("100%");
|
||||||
row.appendChild(lValueValue);
|
row.appendCellChild(lValueValue, 1);
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
|
@ -309,9 +307,8 @@ public class ValuePreference extends Window implements EventListener<Event>
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 5");
|
row.appendCellChild(new Space(), 1);
|
||||||
row.appendChild(new Space());
|
row.appendCellChild(lExplanation, 5);
|
||||||
row.appendChild(lExplanation);
|
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -76,6 +76,7 @@ import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zk.ui.util.Clients;
|
import org.zkoss.zk.ui.util.Clients;
|
||||||
import org.zkoss.zul.Button;
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
import org.zkoss.zul.Center;
|
import org.zkoss.zul.Center;
|
||||||
import org.zkoss.zul.DefaultTreeNode;
|
import org.zkoss.zul.DefaultTreeNode;
|
||||||
import org.zkoss.zul.Div;
|
import org.zkoss.zul.Div;
|
||||||
|
@ -454,7 +455,10 @@ DataStatusListener, IADTabpanel, IdSpace
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Group rowg = new Group(fieldGroup);
|
Group rowg = new Group(fieldGroup);
|
||||||
rowg.setSpans(numColsS);
|
Cell cell = new Cell();
|
||||||
|
cell.setColspan(numCols);
|
||||||
|
rowg.appendChild(cell);
|
||||||
|
|
||||||
allCollapsibleGroups.add(rowg);
|
allCollapsibleGroups.add(rowg);
|
||||||
if (X_AD_FieldGroup.FIELDGROUPTYPE_Tab.equals(field.getFieldGroupType()) || field.getIsCollapsedByDefault())
|
if (X_AD_FieldGroup.FIELDGROUPTYPE_Tab.equals(field.getFieldGroupType()) || field.getIsCollapsedByDefault())
|
||||||
{
|
{
|
||||||
|
@ -502,7 +506,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
||||||
editorComps.add(editor.getComponent());
|
editorComps.add(editor.getComponent());
|
||||||
if (paintLabel) {
|
if (paintLabel) {
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
Label label = editor.getLabel();
|
Label label = editor.getLabel();
|
||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
if (label.getDecorator() != null)
|
if (label.getDecorator() != null)
|
||||||
|
@ -556,7 +560,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
||||||
//display just a label if we are "heading only"
|
//display just a label if we are "heading only"
|
||||||
Label label = new Label(field.getHeader());
|
Label label = new Label(field.getHeader());
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
row.appendCellChild(createSpacer());
|
row.appendCellChild(createSpacer());
|
||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
row.appendCellChild(div);
|
row.appendCellChild(div);
|
||||||
|
|
|
@ -288,7 +288,7 @@ public class ProcessParameterPanel extends Panel implements
|
||||||
m_wEditors.add(editor); // add to Editors
|
m_wEditors.add(editor); // add to Editors
|
||||||
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
org.adempiere.webui.component.Label label = editor.getLabel();
|
org.adempiere.webui.component.Label label = editor.getLabel();
|
||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
if (label.getDecorator() != null)
|
if (label.getDecorator() != null)
|
||||||
|
|
|
@ -194,12 +194,11 @@ public class WAllocation extends Allocation
|
||||||
row.appendChild(organizationPick.getComponent());
|
row.appendChild(organizationPick.getComponent());
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.appendChild(currencyLabel.rightAlign());
|
row.appendCellChild(currencyLabel.rightAlign(),1);
|
||||||
row.appendChild(currencyPick.getComponent());
|
row.appendCellChild(currencyPick.getComponent(),1);
|
||||||
row.appendChild(multiCurrency);
|
row.appendCellChild(multiCurrency,2);
|
||||||
row.appendChild(new Space());
|
row.appendCellChild(new Space(),1);
|
||||||
row.appendChild(new Space());
|
row.appendCellChild(new Space(),1);
|
||||||
row.setSpans("1,1,2,1,1");
|
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.appendChild(new Space());
|
row.appendChild(new Space());
|
||||||
|
|
|
@ -231,90 +231,82 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
||||||
|
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("3");
|
|
||||||
row.setAlign("right");
|
row.setAlign("right");
|
||||||
row.appendChild(reportField);
|
row.appendCellChild(reportField, 3);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(processLabel);
|
div.appendChild(processLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(processField);
|
row.appendCellChild(processField, 2);
|
||||||
processField.setWidth("100%");
|
processField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(bPartnerLabel);
|
div.appendChild(bPartnerLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(bPartnerField.getComponent());
|
row.appendCellChild(bPartnerField.getComponent(), 2);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(tableLabel);
|
div.appendChild(tableLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(tableField);
|
row.appendCellChild(tableField, 2);
|
||||||
tableField.setWidth("100%");
|
tableField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(nameQLabel);
|
div.appendChild(nameQLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(nameQField);
|
row.appendCellChild(nameQField, 2);
|
||||||
nameQField.setWidth("100%");
|
nameQField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(descriptionQLabel);
|
div.appendChild(descriptionQLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(descriptionQField);
|
row.appendCellChild(descriptionQField, 2);
|
||||||
descriptionQField.setWidth("100%");
|
descriptionQField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(helpQLabel);
|
div.appendChild(helpQLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(helpQField);
|
row.appendCellChild(helpQField, 2);
|
||||||
helpQField.setWidth("100%");
|
helpQField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(createdByQLabel);
|
div.appendChild(createdByQLabel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(createdByQField);
|
row.appendCellChild(createdByQField, 2);
|
||||||
createdByQField.setWidth("100%");
|
createdByQField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(createdQLabel);
|
div.appendChild(createdQLabel);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(createdQFrom);
|
row.appendChild(createdQFrom);
|
||||||
row.appendChild(createdQTo);
|
row.appendChild(createdQTo);
|
||||||
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
div.appendChild(gridQuery);
|
div.appendChild(gridQuery);
|
||||||
|
|
||||||
Tabpanel tabQueryPanel = new Tabpanel();
|
Tabpanel tabQueryPanel = new Tabpanel();
|
||||||
|
@ -335,87 +327,76 @@ public class WArchiveViewer extends Archive implements IFormController, EventLis
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2, 1");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("left");
|
div.setStyle("text-align: left;");
|
||||||
div.appendChild(bBack);
|
div.appendChild(bBack);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
div.appendChild(positionInfo);
|
div.appendChild(positionInfo);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 2);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(bNext);
|
div.appendChild(bNext);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(createdByLabel, 4);
|
||||||
row.appendChild(createdByLabel);
|
|
||||||
createdByLabel.setWidth("100%");
|
createdByLabel.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(createdByField, 4);
|
||||||
row.appendChild(createdByField);
|
|
||||||
createdByField.setWidth("100%");
|
createdByField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(createdField);
|
div.appendChild(createdField);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 4);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(nameLabel, 4);
|
||||||
row.appendChild(nameLabel);
|
|
||||||
nameLabel.setWidth("100%");
|
nameLabel.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(nameField, 4);
|
||||||
row.appendChild(nameField);
|
|
||||||
nameField.setWidth("100%");
|
nameField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(descriptionLabel, 4);
|
||||||
row.appendChild(descriptionLabel);
|
|
||||||
descriptionLabel.setWidth("100%");
|
descriptionLabel.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(descriptionField, 4);
|
||||||
row.appendChild(descriptionField);
|
|
||||||
descriptionField.setRows(3);
|
descriptionField.setRows(3);
|
||||||
descriptionField.setWidth("100%");
|
descriptionField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(helpLabel, 4);
|
||||||
row.appendChild(helpLabel);
|
|
||||||
helpLabel.setWidth("100%");
|
helpLabel.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
row.appendCellChild(helpField, 4);
|
||||||
row.appendChild(helpField);
|
|
||||||
helpField.setRows(3);
|
helpField.setRows(3);
|
||||||
helpField.setWidth("100%");
|
helpField.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("4");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(deleteArchive);
|
div.appendChild(deleteArchive);
|
||||||
div.appendChild(bRefresh);
|
div.appendChild(bRefresh);
|
||||||
div.appendChild(updateArchive);
|
div.appendChild(updateArchive);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 4);
|
||||||
|
|
||||||
createdByField.setReadonly(true);
|
createdByField.setReadonly(true);
|
||||||
createdField.getDatebox().setReadonly(true);
|
createdField.getDatebox().setReadonly(true);
|
||||||
|
|
|
@ -122,46 +122,42 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
||||||
|
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(attributeLabel1);
|
div.appendChild(attributeLabel1);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(attributeCombo1);
|
row.appendCellChild(attributeCombo1, 2);
|
||||||
attributeCombo1.setWidth("100%");
|
attributeCombo1.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(attributeLabel2);
|
div.appendChild(attributeLabel2);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(attributeCombo2);
|
row.appendCellChild(attributeCombo2, 2);
|
||||||
attributeCombo2.setWidth("100%");
|
attributeCombo2.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(labelPriceList);
|
div.appendChild(labelPriceList);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(pickPriceList);
|
row.appendCellChild(pickPriceList, 2);
|
||||||
pickPriceList.setWidth("100%");
|
pickPriceList.setWidth("100%");
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("1, 2");
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(labelWarehouse);
|
div.appendChild(labelWarehouse);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 1);
|
||||||
row.appendChild(pickWarehouse);
|
row.appendCellChild(pickWarehouse, 2);
|
||||||
pickWarehouse.setWidth("100%");
|
pickWarehouse.setWidth("100%");
|
||||||
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
div.appendChild(gridSelection);
|
div.appendChild(gridSelection);
|
||||||
|
|
||||||
Tabpanel tabSelectionPanel = new Tabpanel();
|
Tabpanel tabSelectionPanel = new Tabpanel();
|
||||||
|
@ -172,7 +168,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
||||||
tabs.appendChild(tabSelection);
|
tabs.appendChild(tabSelection);
|
||||||
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
div.appendChild(modeLabel);
|
div.appendChild(modeLabel);
|
||||||
div.appendChild(modeCombo);
|
div.appendChild(modeCombo);
|
||||||
modeCombo.addEventListener(Events.ON_CHANGE, this);
|
modeCombo.addEventListener(Events.ON_CHANGE, this);
|
||||||
|
@ -456,7 +452,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
||||||
if (xValues != null)
|
if (xValues != null)
|
||||||
{
|
{
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(new Label(m_attributes[indexAttr1].getName()));
|
div.appendChild(new Label(m_attributes[indexAttr1].getName()));
|
||||||
descr.appendChild(div);
|
descr.appendChild(div);
|
||||||
}
|
}
|
||||||
|
@ -470,7 +466,7 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
||||||
if (xValue != null)
|
if (xValue != null)
|
||||||
{
|
{
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
div.appendChild(new Label(xValue.getName()));
|
div.appendChild(new Label(xValue.getName()));
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
}
|
}
|
||||||
|
|
|
@ -273,7 +273,7 @@ public class WCharge extends Charge implements IFormController, EventListener<Ev
|
||||||
south.setBorder("none");
|
south.setBorder("none");
|
||||||
borderlayout.appendChild(south);
|
borderlayout.appendChild(south);
|
||||||
Panel southPanel = new Panel();
|
Panel southPanel = new Panel();
|
||||||
southPanel.setAlign("right");
|
southPanel.setStyle("text-align: right;");
|
||||||
south.appendChild(southPanel);
|
south.appendChild(southPanel);
|
||||||
m_btnAccount.setLabel(Msg.getMsg(Env.getCtx(), AD_MESSAGE_CREATE) + " " + Msg.getMsg(Env.getCtx(), "From") + " " + Msg.getElement(Env.getCtx(), "Account_ID"));
|
m_btnAccount.setLabel(Msg.getMsg(Env.getCtx(), AD_MESSAGE_CREATE) + " " + Msg.getMsg(Env.getCtx(), "From") + " " + Msg.getElement(Env.getCtx(), "Account_ID"));
|
||||||
m_btnAccount.addEventListener(Events.ON_CLICK, this);
|
m_btnAccount.addEventListener(Events.ON_CLICK, this);
|
||||||
|
@ -310,10 +310,10 @@ public class WCharge extends Charge implements IFormController, EventListener<Ev
|
||||||
|
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("3");
|
|
||||||
Label label = new Label(Msg.getMsg(Env.getCtx(), "ChargeNewAccount"));
|
Label label = new Label(Msg.getMsg(Env.getCtx(), "ChargeNewAccount"));
|
||||||
label.setStyle("font-weight: bold;");
|
label.setStyle("font-weight: bold;");
|
||||||
row.appendChild(label);
|
row.appendCellChild(label, 3);
|
||||||
|
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
@ -329,8 +329,7 @@ public class WCharge extends Charge implements IFormController, EventListener<Ev
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("3");
|
row.appendCellChild(new Separator(), 3);
|
||||||
row.appendChild(new Separator());
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,10 +236,9 @@ public class WMatch extends Match
|
||||||
row.appendChild(new Space());
|
row.appendChild(new Space());
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.setSpans("1,1,3");
|
row.appendCellChild(matchModeLabel.rightAlign(), 1);
|
||||||
row.appendChild(matchModeLabel.rightAlign());
|
row.appendCellChild(matchMode, 1);
|
||||||
row.appendChild(matchMode);
|
row.appendCellChild(new Space(), 3);
|
||||||
row.appendChild(new Space());
|
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.appendChild(onlyVendorLabel.rightAlign());
|
row.appendChild(onlyVendorLabel.rightAlign());
|
||||||
|
|
|
@ -341,9 +341,8 @@ public class WPayment extends Window
|
||||||
row.appendChild(kOnline);
|
row.appendChild(kOnline);
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.setSpans("3,1");
|
row.appendCellChild(kStatus, 3);
|
||||||
row.appendChild(kStatus);
|
row.appendCellChild(new Space(), 1);
|
||||||
row.appendChild(new Space());
|
|
||||||
|
|
||||||
// DircetDebit/Credit
|
// DircetDebit/Credit
|
||||||
tPanel.appendChild(tPanelLayout);
|
tPanel.appendChild(tPanelLayout);
|
||||||
|
@ -379,9 +378,8 @@ public class WPayment extends Window
|
||||||
row.appendChild(tOnline);
|
row.appendChild(tOnline);
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.setSpans("3,1");
|
row.appendCellChild(tStatus, 3);
|
||||||
row.appendChild(tStatus);
|
row.appendCellChild(new Space(), 1);
|
||||||
row.appendChild(new Space());
|
|
||||||
|
|
||||||
// Cheque
|
// Cheque
|
||||||
sPanel.appendChild(sPanelLayout);
|
sPanel.appendChild(sPanelLayout);
|
||||||
|
@ -439,9 +437,8 @@ public class WPayment extends Window
|
||||||
row.appendChild(sOnline);
|
row.appendChild(sOnline);
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
row.setSpans("3,1");
|
row.appendCellChild(sStatus, 3);
|
||||||
row.appendChild(sStatus);
|
row.appendCellChild(new Space(), 1);
|
||||||
row.appendChild(new Space());
|
|
||||||
|
|
||||||
// Cash
|
// Cash
|
||||||
pPanel.appendChild(pPanelLayout);
|
pPanel.appendChild(pPanelLayout);
|
||||||
|
|
|
@ -415,7 +415,7 @@ public class WReportCustomization implements IFormController,EventListener<Even
|
||||||
|
|
||||||
Hbox hb = new Hbox();
|
Hbox hb = new Hbox();
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||||
hb.appendChild(div);
|
hb.appendChild(div);
|
||||||
hb.appendChild(cboType);
|
hb.appendChild(cboType);
|
||||||
|
|
|
@ -96,8 +96,9 @@ public class WResetPassword implements IFormController, EventListener<Event>, Va
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setStyle("border: none");
|
center.setStyle("border: none");
|
||||||
contentPane.appendChild(center);
|
contentPane.appendChild(center);
|
||||||
|
gridPanel.setHflex("true");
|
||||||
|
gridPanel.setVflex("true");
|
||||||
center.appendChild(gridPanel);
|
center.appendChild(gridPanel);
|
||||||
center.setFlex(true);
|
|
||||||
South south = new South();
|
South south = new South();
|
||||||
south.setStyle("border: none");
|
south.setStyle("border: none");
|
||||||
contentPane.appendChild(south);
|
contentPane.appendChild(south);
|
||||||
|
|
|
@ -118,8 +118,7 @@ public class WSQLProcess extends ADForm implements EventListener<Event>
|
||||||
m_txbResultField.setRows(noResultRows);
|
m_txbResultField.setRows(noResultRows);
|
||||||
m_txbResultField.setReadonly(true);
|
m_txbResultField.setReadonly(true);
|
||||||
|
|
||||||
rwBottom.appendChild(m_txbResultField);
|
rwBottom.appendCellChild(m_txbResultField, 3);
|
||||||
rwBottom.setSpans("3");
|
|
||||||
rwBottom.setAlign("center");
|
rwBottom.setAlign("center");
|
||||||
|
|
||||||
rows.appendChild(rwBottom);
|
rows.appendChild(rwBottom);
|
||||||
|
|
|
@ -188,7 +188,6 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
||||||
// set size in percentage per column leaving a MARGIN on right
|
// set size in percentage per column leaving a MARGIN on right
|
||||||
Columns columns = new Columns();
|
Columns columns = new Columns();
|
||||||
form.appendChild(columns);
|
form.appendChild(columns);
|
||||||
String numColsS=String.valueOf(numCols);
|
|
||||||
int equalWidth = 98 / numCols;
|
int equalWidth = 98 / numCols;
|
||||||
|
|
||||||
for (int h=0;h<numCols;h++){
|
for (int h=0;h<numCols;h++){
|
||||||
|
@ -244,7 +243,9 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Group rowg = new Group(fieldGroup);
|
Group rowg = new Group(fieldGroup);
|
||||||
rowg.setSpans(numColsS);
|
Cell cell = new Cell();
|
||||||
|
cell.setColspan(numCols);
|
||||||
|
rowg.appendChild(cell);
|
||||||
if (X_AD_FieldGroup.FIELDGROUPTYPE_Tab.equals(gridField.getFieldGroupType()) || gridField.getIsCollapsedByDefault())
|
if (X_AD_FieldGroup.FIELDGROUPTYPE_Tab.equals(gridField.getFieldGroupType()) || gridField.getIsCollapsedByDefault())
|
||||||
{
|
{
|
||||||
rowg.setOpen(false);
|
rowg.setOpen(false);
|
||||||
|
@ -301,7 +302,7 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
||||||
}
|
}
|
||||||
if (paintLabel) {
|
if (paintLabel) {
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
Label label = editor.getLabel();
|
Label label = editor.getLabel();
|
||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
if (label.getDecorator() != null)
|
if (label.getDecorator() != null)
|
||||||
|
@ -322,7 +323,7 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
||||||
//display just a label if we are "heading only"
|
//display just a label if we are "heading only"
|
||||||
Label label = new Label(gridField.getHeader());
|
Label label = new Label(gridField.getHeader());
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("center");
|
div.setStyle("text-align: center;");
|
||||||
row.appendCellChild(createSpacer());
|
row.appendCellChild(createSpacer());
|
||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
row.appendCellChild(div);
|
row.appendCellChild(div);
|
||||||
|
|
|
@ -155,7 +155,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lNode);
|
div.appendChild(lNode);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fNode);
|
row.appendChild(fNode);
|
||||||
|
@ -166,7 +166,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setValign("top");
|
row.setValign("top");
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lDesctiption);
|
div.appendChild(lDesctiption);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fDescription);
|
row.appendChild(fDescription);
|
||||||
|
@ -177,7 +177,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lHelp);
|
div.appendChild(lHelp);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fHelp);
|
row.appendChild(fHelp);
|
||||||
|
@ -190,7 +190,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lHistory);
|
div.appendChild(lHistory);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fHistory);
|
row.appendChild(fHistory);
|
||||||
|
@ -199,7 +199,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lAnswer);
|
div.appendChild(lAnswer);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
Hbox hbox = new Hbox();
|
Hbox hbox = new Hbox();
|
||||||
|
@ -214,7 +214,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lTextMsg);
|
div.appendChild(lTextMsg);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fTextMsg);
|
row.appendChild(fTextMsg);
|
||||||
|
@ -225,7 +225,7 @@ public class WWFActivity extends ADForm implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lForward);
|
div.appendChild(lForward);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
hbox = new Hbox();
|
hbox = new Hbox();
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class WTranslationDialog extends TranslationController implements IFormCo
|
||||||
row.appendChild(cbTable);
|
row.appendChild(cbTable);
|
||||||
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(bExport);
|
div.appendChild(bExport);
|
||||||
|
|
||||||
row = rows.newRow();
|
row = rows.newRow();
|
||||||
|
|
|
@ -240,7 +240,7 @@ public class CustomizeGridViewPanel extends Panel
|
||||||
south.setStyle("border: none; margin: none");
|
south.setStyle("border: none; margin: none");
|
||||||
Panel southPanel = new Panel();
|
Panel southPanel = new Panel();
|
||||||
south.setHeight("35px");
|
south.setHeight("35px");
|
||||||
southPanel.setAlign("Right");
|
south.setStyle("text-align: right;");
|
||||||
southPanel.setStyle("margin-top: 2px; margin-right: 4px");
|
southPanel.setStyle("margin-top: 2px; margin-right: 4px");
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
String label = Msg.getMsg(Env.getCtx(), "save");
|
String label = Msg.getMsg(Env.getCtx(), "save");
|
||||||
|
|
|
@ -213,11 +213,11 @@ public class InfoAssignmentPanel extends InfoPanel implements EventListener<Even
|
||||||
row.appendChild(fieldResourceType.getComponent());
|
row.appendChild(fieldResourceType.getComponent());
|
||||||
row.appendChild(fieldResource.getComponent());
|
row.appendChild(fieldResource.getComponent());
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(fieldFrom);
|
div.appendChild(fieldFrom);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(fieldTo);
|
div.appendChild(fieldTo);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(bNew);
|
row.appendChild(bNew);
|
||||||
|
|
|
@ -226,29 +226,27 @@ public class InfoCashLinePanel extends InfoPanel implements ValueChangeListener,
|
||||||
row.appendChild(cbAbsolute);
|
row.appendChild(cbAbsolute);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 2");
|
row.appendCellChild(fInvoice_ID.getLabel().rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(fInvoice_ID.getComponent(), 1);
|
||||||
row.appendChild(fInvoice_ID.getLabel().rightAlign());
|
row.appendCellChild(lDateFrom.rightAlign(), 1);
|
||||||
row.appendChild(fInvoice_ID.getComponent());
|
|
||||||
row.appendChild(lDateFrom.rightAlign());
|
|
||||||
Hbox hbox = new Hbox();
|
Hbox hbox = new Hbox();
|
||||||
hbox.appendChild(fDateFrom);
|
hbox.appendChild(fDateFrom);
|
||||||
hbox.appendChild(lDateTo);
|
hbox.appendChild(lDateTo);
|
||||||
hbox.appendChild(fDateTo);
|
hbox.appendChild(fDateTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 2");
|
row.appendCellChild(fBankAccount_ID.getLabel().rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(fBankAccount_ID.getComponent(), 1);
|
||||||
row.appendChild(fBankAccount_ID.getLabel().rightAlign());
|
row.appendCellChild(lAmtFrom.rightAlign(), 1);
|
||||||
row.appendChild(fBankAccount_ID.getComponent());
|
|
||||||
row.appendChild(lAmtFrom.rightAlign());
|
|
||||||
hbox = new Hbox();
|
hbox = new Hbox();
|
||||||
hbox.appendChild(fAmtFrom);
|
hbox.appendChild(fAmtFrom);
|
||||||
hbox.appendChild(lAmtTo);
|
hbox.appendChild(lAmtTo);
|
||||||
hbox.appendChild(fAmtTo);
|
hbox.appendChild(fAmtTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
layout = new Borderlayout();
|
layout = new Borderlayout();
|
||||||
layout.setWidth("100%");
|
layout.setWidth("100%");
|
||||||
layout.setHeight("100%");
|
layout.setHeight("100%");
|
||||||
|
|
|
@ -205,23 +205,21 @@ public class InfoInOutPanel extends InfoPanel implements ValueChangeListener, Ev
|
||||||
row.appendChild(fIsSOTrx);
|
row.appendChild(fIsSOTrx);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 2");
|
row.appendCellChild(lDescription.rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(fDescription, 1);
|
||||||
row.appendChild(lDescription.rightAlign());
|
row.appendCellChild(lDateFrom.rightAlign(), 1);
|
||||||
row.appendChild(fDescription);
|
|
||||||
row.appendChild(lDateFrom.rightAlign());
|
|
||||||
Hbox hbox = new Hbox();
|
Hbox hbox = new Hbox();
|
||||||
hbox.appendChild(fDateFrom);
|
hbox.appendChild(fDateFrom);
|
||||||
hbox.appendChild(lDateTo);
|
hbox.appendChild(lDateTo);
|
||||||
hbox.appendChild(fDateTo);
|
hbox.appendChild(fDateTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 3");
|
row.appendCellChild(lPOReference.rightAlign(), 1);
|
||||||
|
row.appendCellChild(fPOReference, 1);
|
||||||
|
row.appendCellChild(new Label(), 3);
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.appendChild(lPOReference.rightAlign());
|
|
||||||
row.appendChild(fPOReference);
|
|
||||||
row.appendChild(new Label());
|
|
||||||
|
|
||||||
layout = new Borderlayout();
|
layout = new Borderlayout();
|
||||||
layout.setWidth("100%");
|
layout.setWidth("100%");
|
||||||
|
|
|
@ -234,28 +234,26 @@ public class InfoInvoicePanel extends InfoPanel implements ValueChangeListener
|
||||||
row.appendChild(isPaid);
|
row.appendChild(isPaid);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 3");
|
row.appendCellChild(lblDescription.rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(txtDescription, 1);
|
||||||
row.appendChild(lblDescription.rightAlign());
|
row.appendCellChild(lblDateInvoiced.rightAlign(), 1);
|
||||||
row.appendChild(txtDescription);
|
|
||||||
row.appendChild(lblDateInvoiced.rightAlign());
|
|
||||||
Hbox hbox = new Hbox();
|
Hbox hbox = new Hbox();
|
||||||
hbox.appendChild(dateFrom);
|
hbox.appendChild(dateFrom);
|
||||||
hbox.appendChild(new Label("-"));
|
hbox.appendChild(new Label("-"));
|
||||||
hbox.appendChild(dateTo);
|
hbox.appendChild(dateTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 3);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 3");
|
row.appendCellChild(editorOrder.getLabel().rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(editorOrder.getComponent(), 1);
|
||||||
row.appendChild(editorOrder.getLabel().rightAlign());
|
row.appendCellChild(lblGrandTotal.rightAlign(), 1);
|
||||||
row.appendChild(editorOrder.getComponent());
|
|
||||||
row.appendChild(lblGrandTotal.rightAlign());
|
|
||||||
hbox = new Hbox();
|
hbox = new Hbox();
|
||||||
hbox.appendChild(amountFrom);
|
hbox.appendChild(amountFrom);
|
||||||
hbox.appendChild(new Label("-"));
|
hbox.appendChild(new Label("-"));
|
||||||
hbox.appendChild(amountTo);
|
hbox.appendChild(amountTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 3);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
layout = new Borderlayout();
|
layout = new Borderlayout();
|
||||||
layout.setWidth("100%");
|
layout.setWidth("100%");
|
||||||
|
|
|
@ -211,28 +211,26 @@ public class InfoOrderPanel extends InfoPanel implements ValueChangeListener
|
||||||
row.appendChild(isSoTrx);
|
row.appendChild(isSoTrx);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 2");
|
row.appendCellChild(lblDescription.rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(txtDescription, 1);
|
||||||
row.appendChild(lblDescription.rightAlign());
|
row.appendCellChild(lblDateOrdered.rightAlign(), 1);
|
||||||
row.appendChild(txtDescription);
|
|
||||||
row.appendChild(lblDateOrdered.rightAlign());
|
|
||||||
Hbox hbox = new Hbox();
|
Hbox hbox = new Hbox();
|
||||||
hbox.appendChild(dateFrom);
|
hbox.appendChild(dateFrom);
|
||||||
hbox.appendChild(new Label("-"));
|
hbox.appendChild(new Label("-"));
|
||||||
hbox.appendChild(dateTo);
|
hbox.appendChild(dateTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 2");
|
row.appendCellChild(lblOrderRef.rightAlign(), 1);
|
||||||
rows.appendChild(row);
|
row.appendCellChild(txtOrderRef, 1);
|
||||||
row.appendChild(lblOrderRef.rightAlign());
|
row.appendCellChild(lblGrandTotal.rightAlign(), 1);
|
||||||
row.appendChild(txtOrderRef);
|
|
||||||
row.appendChild(lblGrandTotal.rightAlign());
|
|
||||||
hbox = new Hbox();
|
hbox = new Hbox();
|
||||||
hbox.appendChild(amountFrom);
|
hbox.appendChild(amountFrom);
|
||||||
hbox.appendChild(new Label("-"));
|
hbox.appendChild(new Label("-"));
|
||||||
hbox.appendChild(amountTo);
|
hbox.appendChild(amountTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
layout = new Borderlayout();
|
layout = new Borderlayout();
|
||||||
layout.setWidth("100%");
|
layout.setWidth("100%");
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class InfoPAttributeInstancePanel extends Window implements EventListener
|
||||||
North north = new North();
|
North north = new North();
|
||||||
borderlayout.appendChild(north);
|
borderlayout.appendChild(north);
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(showAll);
|
div.appendChild(showAll);
|
||||||
north.appendChild(div);
|
north.appendChild(div);
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ import org.compiere.util.Msg;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
import org.zkoss.zul.Div;
|
import org.zkoss.zul.Div;
|
||||||
import org.zkoss.zul.Separator;
|
import org.zkoss.zul.Separator;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
@ -176,7 +177,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(serNoLabel);
|
div.appendChild(serNoLabel);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(serNoField.getComponent());
|
row.appendChild(serNoField.getComponent());
|
||||||
|
@ -187,7 +188,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lotLabel);
|
div.appendChild(lotLabel);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(lotField.getComponent());
|
row.appendChild(lotField.getComponent());
|
||||||
|
@ -196,7 +197,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lotLabel2);
|
div.appendChild(lotLabel2);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(lotSelection);
|
row.appendChild(lotSelection);
|
||||||
|
@ -206,7 +207,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(guaranteeDateSelection);
|
div.appendChild(guaranteeDateSelection);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(guaranteeDateField);
|
row.appendChild(guaranteeDateField);
|
||||||
|
@ -250,14 +251,18 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
{
|
{
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
Cell cell = new Cell();
|
||||||
|
cell.setColspan(2);
|
||||||
|
row.appendCellChild(cell);
|
||||||
Label group = new Label(Msg.translate(Env.getCtx(), "IsInstanceAttribute"));
|
Label group = new Label(Msg.translate(Env.getCtx(), "IsInstanceAttribute"));
|
||||||
row.appendChild(group);
|
row.appendChild(group);
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
cell = new Cell();
|
||||||
|
cell.setColspan(2);
|
||||||
|
row.appendCellChild(cell);
|
||||||
Separator separator = new Separator();
|
Separator separator = new Separator();
|
||||||
separator.setBar(true);
|
separator.setBar(true);
|
||||||
row.appendChild(separator);
|
row.appendChild(separator);
|
||||||
|
@ -275,7 +280,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
label.setTooltiptext(description);
|
label.setTooltiptext(description);
|
||||||
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
|
|
||||||
|
@ -318,7 +323,7 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(new Label("-"));
|
div.appendChild(new Label("-"));
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fieldTo);
|
row.appendChild(fieldTo);
|
||||||
|
@ -352,14 +357,18 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
|
||||||
if (isGuarantee || isSerial || isLot) {
|
if (isGuarantee || isSerial || isLot) {
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
Cell cell = new Cell();
|
||||||
|
cell.setColspan(2);
|
||||||
|
row.appendCellChild(cell);
|
||||||
Label group = new Label(Msg.translate(Env.getCtx(), "IsInstanceAttribute"));
|
Label group = new Label(Msg.translate(Env.getCtx(), "IsInstanceAttribute"));
|
||||||
row.appendChild(group);
|
row.appendChild(group);
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
cell = new Cell();
|
||||||
|
cell.setColspan(2);
|
||||||
|
row.appendCellChild(cell);
|
||||||
Separator separator = new Separator();
|
Separator separator = new Separator();
|
||||||
separator.setBar(true);
|
separator.setBar(true);
|
||||||
row.appendChild(separator);
|
row.appendChild(separator);
|
||||||
|
|
|
@ -212,24 +212,22 @@ public class InfoPaymentPanel extends InfoPanel implements ValueChangeListener,
|
||||||
row.appendChild(fIsReceipt);
|
row.appendChild(fIsReceipt);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("3, 2");
|
row.appendCellChild(lDateFrom.rightAlign(), 3);
|
||||||
rows.appendChild(row);
|
|
||||||
row.appendChild(lDateFrom.rightAlign());
|
|
||||||
Hbox hbox = new Hbox();
|
Hbox hbox = new Hbox();
|
||||||
hbox.appendChild(fDateFrom);
|
hbox.appendChild(fDateFrom);
|
||||||
hbox.appendChild(lDateTo);
|
hbox.appendChild(lDateTo);
|
||||||
hbox.appendChild(fDateTo);
|
hbox.appendChild(fDateTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("3, 2");
|
row.appendCellChild(lAmtFrom.rightAlign(), 3);
|
||||||
rows.appendChild(row);
|
|
||||||
row.appendChild(lAmtFrom.rightAlign());
|
|
||||||
hbox = new Hbox();
|
hbox = new Hbox();
|
||||||
hbox.appendChild(fAmtFrom);
|
hbox.appendChild(fAmtFrom);
|
||||||
hbox.appendChild(lAmtTo);
|
hbox.appendChild(lAmtTo);
|
||||||
hbox.appendChild(fAmtTo);
|
hbox.appendChild(fAmtTo);
|
||||||
row.appendChild(hbox);
|
row.appendCellChild(hbox, 2);
|
||||||
|
rows.appendChild(row);
|
||||||
|
|
||||||
layout = new Borderlayout();
|
layout = new Borderlayout();
|
||||||
layout.setWidth("100%");
|
layout.setWidth("100%");
|
||||||
|
|
|
@ -80,6 +80,7 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zul.Borderlayout;
|
import org.zkoss.zul.Borderlayout;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
import org.zkoss.zul.Center;
|
import org.zkoss.zul.Center;
|
||||||
import org.zkoss.zul.North;
|
import org.zkoss.zul.North;
|
||||||
import org.zkoss.zul.South;
|
import org.zkoss.zul.South;
|
||||||
|
@ -332,17 +333,17 @@ public class InfoProductPanel extends InfoPanel implements EventListener<Event>
|
||||||
row.appendChild(m_InfoPAttributeButton);
|
row.appendChild(m_InfoPAttributeButton);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 1, 1, 1, 1, 1, 1, 2");
|
row.appendCellChild(lblName.rightAlign());
|
||||||
rows.appendChild(row);
|
row.appendCellChild(fieldName);
|
||||||
row.appendChild(lblName.rightAlign());
|
|
||||||
row.appendChild(fieldName);
|
|
||||||
fieldName.setHflex("1");
|
fieldName.setHflex("1");
|
||||||
row.appendChild(lblSKU.rightAlign());
|
row.appendCellChild(lblSKU.rightAlign());
|
||||||
row.appendChild(fieldSKU);
|
row.appendCellChild(fieldSKU);
|
||||||
fieldSKU.setHflex("1");
|
fieldSKU.setHflex("1");
|
||||||
row.appendChild(lblVendor.rightAlign());
|
row.appendCellChild(lblVendor.rightAlign());
|
||||||
row.appendChild(fieldVendor);
|
row.appendCellChild(fieldVendor);
|
||||||
|
rows.appendChild(row);
|
||||||
fieldVendor.setHflex("1");
|
fieldVendor.setHflex("1");
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
|
@ -357,7 +358,9 @@ public class InfoProductPanel extends InfoPanel implements EventListener<Event>
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.appendChild(statusBar);
|
row.appendChild(statusBar);
|
||||||
row.setSpans("6");
|
Cell cell = new Cell();
|
||||||
|
cell.setColspan(6);
|
||||||
|
row.appendCellChild(cell);
|
||||||
statusBar.setEastVisibility(false);
|
statusBar.setEastVisibility(false);
|
||||||
statusBar.setWidth("100%");
|
statusBar.setWidth("100%");
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class ExportAction implements EventListener<Event>
|
||||||
|
|
||||||
Hbox hb = new Hbox();
|
Hbox hb = new Hbox();
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||||
hb.appendChild(div);
|
hb.appendChild(div);
|
||||||
hb.appendChild(cboType);
|
hb.appendChild(cboType);
|
||||||
|
|
|
@ -146,7 +146,7 @@ public class FileImportAction implements EventListener<Event>
|
||||||
|
|
||||||
Hbox hb = new Hbox();
|
Hbox hb = new Hbox();
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||||
hb.appendChild(div);
|
hb.appendChild(div);
|
||||||
hb.appendChild(cboType);
|
hb.appendChild(cboType);
|
||||||
|
|
|
@ -60,6 +60,7 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zul.Borderlayout;
|
import org.zkoss.zul.Borderlayout;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
import org.zkoss.zul.Center;
|
import org.zkoss.zul.Center;
|
||||||
import org.zkoss.zul.North;
|
import org.zkoss.zul.North;
|
||||||
import org.zkoss.zul.South;
|
import org.zkoss.zul.South;
|
||||||
|
@ -224,15 +225,17 @@ public final class WAccountDialog extends Window
|
||||||
|
|
||||||
North nRegion = new North();
|
North nRegion = new North();
|
||||||
nRegion.setParent(layout);
|
nRegion.setParent(layout);
|
||||||
nRegion.setFlex(false);
|
northPanel.setHflex("false");
|
||||||
|
northPanel.setVflex("false");
|
||||||
nRegion.appendChild(northPanel);
|
nRegion.appendChild(northPanel);
|
||||||
nRegion.setStyle("background-color: transparent; border: none");
|
nRegion.setStyle("background-color: transparent; border: none");
|
||||||
northPanel.setStyle("background-color: transparent;");
|
northPanel.setStyle("background-color: transparent;");
|
||||||
|
|
||||||
Center cRegion = new Center();
|
Center cRegion = new Center();
|
||||||
cRegion.setParent(layout);
|
cRegion.setParent(layout);
|
||||||
|
m_adTabPanel.setHflex("true");
|
||||||
|
m_adTabPanel.setVflex("true");
|
||||||
cRegion.appendChild(m_adTabPanel);
|
cRegion.appendChild(m_adTabPanel);
|
||||||
cRegion.setFlex(true);
|
|
||||||
|
|
||||||
South sRegion = new South();
|
South sRegion = new South();
|
||||||
sRegion.setParent(layout);
|
sRegion.setParent(layout);
|
||||||
|
@ -424,8 +427,10 @@ public final class WAccountDialog extends Window
|
||||||
m_newRow = true;
|
m_newRow = true;
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
f_Description.setStyle("font-decoration: italic;");
|
f_Description.setStyle("font-decoration: italic;");
|
||||||
row.appendChild(f_Description);
|
Cell cell = new Cell();
|
||||||
row.setSpans("4");
|
cell.setColspan(4);
|
||||||
|
cell.appendChild(f_Description);
|
||||||
|
row.appendChild(cell);
|
||||||
row.setStyle("background-color: transparent;");
|
row.setStyle("background-color: transparent;");
|
||||||
m_rows.appendChild(row);
|
m_rows.appendChild(row);
|
||||||
|
|
||||||
|
|
|
@ -170,8 +170,7 @@ public class WAssignmentDialog extends Window implements EventListener<Event>
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 2");
|
row.appendCellChild(LayoutUtils.makeRightAlign(lDate), 1);
|
||||||
row.appendChild(LayoutUtils.makeRightAlign(lDate));
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setHflex("1");
|
div.setHflex("1");
|
||||||
div.appendChild(fDateFrom);
|
div.appendChild(fDateFrom);
|
||||||
|
@ -179,7 +178,7 @@ public class WAssignmentDialog extends Window implements EventListener<Event>
|
||||||
div.appendChild(fTimeFrom);
|
div.appendChild(fTimeFrom);
|
||||||
fTimeFrom.setCols(10);
|
fTimeFrom.setCols(10);
|
||||||
fTimeFrom.setStyle("margin-left: 1px");
|
fTimeFrom.setStyle("margin-left: 1px");
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 2);
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
|
@ -189,29 +188,25 @@ public class WAssignmentDialog extends Window implements EventListener<Event>
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 2");
|
row.appendCellChild(LayoutUtils.makeRightAlign(lName), 1);
|
||||||
row.appendChild(LayoutUtils.makeRightAlign(lName));
|
row.appendCellChild(fName, 2);
|
||||||
row.appendChild(fName);
|
|
||||||
fName.setStyle("width: 100%");
|
fName.setStyle("width: 100%");
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("1, 2");
|
row.appendCellChild(LayoutUtils.makeRightAlign(lDescription), 1);
|
||||||
row.appendChild(LayoutUtils.makeRightAlign(lDescription));
|
row.appendCellChild(fDescription, 2);
|
||||||
row.appendChild(fDescription);
|
|
||||||
fDescription.setMultiline(true);
|
fDescription.setMultiline(true);
|
||||||
fDescription.setRows(3);
|
fDescription.setRows(3);
|
||||||
fDescription.setStyle("width: 100%");
|
fDescription.setStyle("width: 100%");
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("3");
|
row.appendCellChild(new Label(" "), 3);
|
||||||
row.appendChild(new Label(" "));
|
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
row.setSpans("3");
|
row.appendCellChild(confirmPanel, 3);
|
||||||
row.appendChild(confirmPanel);
|
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
//
|
//
|
||||||
} // jbInit
|
} // jbInit
|
||||||
|
|
|
@ -137,8 +137,9 @@ public class WChat extends Window implements EventListener<Event>, DialogEvents
|
||||||
//
|
//
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
|
messageTree.setHflex("true");
|
||||||
|
messageTree.setVflex("true");
|
||||||
center.appendChild(messageTree);
|
center.appendChild(messageTree);
|
||||||
center.setFlex(true);
|
|
||||||
center.setAutoscroll(true);
|
center.setAutoscroll(true);
|
||||||
mainPanel.appendChild(center);
|
mainPanel.appendChild(center);
|
||||||
//
|
//
|
||||||
|
|
|
@ -206,7 +206,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lFrom);
|
div.appendChild(lFrom);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fFrom);
|
row.appendChild(fFrom);
|
||||||
|
@ -215,7 +215,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lTo);
|
div.appendChild(lTo);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fUser.getComponent());
|
row.appendChild(fUser.getComponent());
|
||||||
|
@ -230,7 +230,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lCc);
|
div.appendChild(lCc);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fCcUser.getComponent());
|
row.appendChild(fCcUser.getComponent());
|
||||||
|
@ -244,13 +244,12 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
row.appendCellChild(new Separator(), 2);
|
||||||
row.appendChild(new Separator());
|
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lSubject);
|
div.appendChild(lSubject);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fSubject);
|
row.appendChild(fSubject);
|
||||||
|
@ -258,13 +257,12 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
row.appendCellChild(new Separator(), 2);
|
||||||
row.appendChild(new Separator());
|
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
div = new Div();
|
div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(lAttachment);
|
div.appendChild(lAttachment);
|
||||||
row.appendChild(div);
|
row.appendChild(div);
|
||||||
row.appendChild(fAttachment);
|
row.appendChild(fAttachment);
|
||||||
|
@ -272,8 +270,7 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("2");
|
row.appendCellChild(fMessage, 2);
|
||||||
row.appendChild(fMessage);
|
|
||||||
fMessage.setHflex("1");
|
fMessage.setHflex("1");
|
||||||
fMessage.setRows(10);
|
fMessage.setRows(10);
|
||||||
|
|
||||||
|
@ -285,10 +282,11 @@ public class WEMailDialog extends Window implements EventListener<Event>, ValueC
|
||||||
layout.setStyle("background-color: white; position: absolute; margin:0; border:0; padding:0");
|
layout.setStyle("background-color: white; position: absolute; margin:0; border:0; padding:0");
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
|
grid.setHflex("true");
|
||||||
|
grid.setVflex("true");
|
||||||
center.appendChild(grid);
|
center.appendChild(grid);
|
||||||
layout.appendChild(center);
|
layout.appendChild(center);
|
||||||
center.setStyle("background-color: white; border: 0");
|
center.setStyle("background-color: white; border: 0");
|
||||||
center.setFlex(true);
|
|
||||||
|
|
||||||
South south = new South();
|
South south = new South();
|
||||||
Div southDiv = new Div();
|
Div southDiv = new Div();
|
||||||
|
|
|
@ -138,12 +138,12 @@ public class WFieldRecordInfo extends Window implements EventListener<Event>
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setParent(layout);
|
center.setParent(layout);
|
||||||
center.setFlex(true);
|
|
||||||
if (showTable)
|
if (showTable)
|
||||||
{
|
{
|
||||||
|
table.setHflex("true");
|
||||||
|
table.setVflex("true");
|
||||||
center.appendChild(table);
|
center.appendChild(table);
|
||||||
table.setWidth("100%");
|
table.setWidth("100%");
|
||||||
table.setVflex(true);
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
South south = new South();
|
South south = new South();
|
||||||
|
|
|
@ -137,7 +137,8 @@ public class WImageDialog extends Window implements EventListener<Event>
|
||||||
parameterPanel.appendChild((fileButton));
|
parameterPanel.appendChild((fileButton));
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setFlex(true);
|
image.setHflex("true");
|
||||||
|
image.setVflex("true");
|
||||||
center.setParent(mainLayout);
|
center.setParent(mainLayout);
|
||||||
center.appendChild(image);
|
center.appendChild(image);
|
||||||
center.setStyle("background-color: transparent");
|
center.setStyle("background-color: transparent");
|
||||||
|
|
|
@ -171,7 +171,8 @@ public class WMediaDialog extends Window implements EventListener<Event>
|
||||||
|
|
||||||
Center centerPane = new Center();
|
Center centerPane = new Center();
|
||||||
centerPane.setAutoscroll(true);
|
centerPane.setAutoscroll(true);
|
||||||
centerPane.setFlex(true);
|
previewPanel.setHflex("true");
|
||||||
|
previewPanel.setVflex("true");
|
||||||
mainPanel.appendChild(centerPane);
|
mainPanel.appendChild(centerPane);
|
||||||
centerPane.appendChild(previewPanel);
|
centerPane.appendChild(previewPanel);
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,8 @@ public class WPAttributeDialog extends Window implements EventListener<Event>
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setParent(mainLayout);
|
center.setParent(mainLayout);
|
||||||
center.setFlex(true);
|
centerPanel.setHflex("true");
|
||||||
|
centerPanel.setVflex("true");
|
||||||
center.appendChild(centerPanel);
|
center.appendChild(centerPanel);
|
||||||
|
|
||||||
South south = new South();
|
South south = new South();
|
||||||
|
|
|
@ -145,7 +145,8 @@ public class WPAttributeInstance extends Window implements EventListener<Event>
|
||||||
// Center
|
// Center
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setParent(mainLayout);
|
center.setParent(mainLayout);
|
||||||
center.setFlex(true);
|
m_table.setHflex("true");
|
||||||
|
m_table.setVflex("true");
|
||||||
center.appendChild(m_table);
|
center.appendChild(m_table);
|
||||||
|
|
||||||
// South
|
// South
|
||||||
|
|
|
@ -208,11 +208,10 @@ public class WRecordAccessDialog extends Window implements EventListener<Event>
|
||||||
|
|
||||||
row = new Row();
|
row = new Row();
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
row.setSpans("7");
|
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(confirmPanel);
|
div.appendChild(confirmPanel);
|
||||||
row.appendChild(div);
|
row.appendCellChild(div, 7);
|
||||||
|
|
||||||
bUp.addEventListener(Events.ON_CLICK, this);
|
bUp.addEventListener(Events.ON_CLICK, this);
|
||||||
bDown.addEventListener(Events.ON_CLICK, this);
|
bDown.addEventListener(Events.ON_CLICK, this);
|
||||||
|
|
|
@ -154,9 +154,10 @@ public class WRecordInfo extends Window implements EventListener<Event>
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setParent(layout);
|
center.setParent(layout);
|
||||||
center.setFlex(true);
|
|
||||||
if (showTable)
|
if (showTable)
|
||||||
{
|
{
|
||||||
|
table.setHflex("true");
|
||||||
|
table.setVflex("true");
|
||||||
North north = new North();
|
North north = new North();
|
||||||
north.setParent(layout);
|
north.setParent(layout);
|
||||||
north.appendChild(div);
|
north.appendChild(div);
|
||||||
|
@ -167,6 +168,8 @@ public class WRecordInfo extends Window implements EventListener<Event>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
div.setHflex("true");
|
||||||
|
div.setVflex("true");
|
||||||
center.appendChild(div);
|
center.appendChild(div);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
|
@ -173,8 +173,9 @@ public class WTask extends Window implements EventListener<Event>
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setStyle("width: 100%; height:100%; overflow: auto");
|
div.setStyle("width: 100%; height:100%; overflow: auto");
|
||||||
div.appendChild(info);
|
div.appendChild(info);
|
||||||
|
div.setHflex("true");
|
||||||
|
div.setVflex("true");
|
||||||
center.appendChild(div);
|
center.appendChild(div);
|
||||||
center.setFlex(true);
|
|
||||||
|
|
||||||
South south = new South();
|
South south = new South();
|
||||||
layout.appendChild(south);
|
layout.appendChild(south);
|
||||||
|
|
|
@ -82,9 +82,10 @@ public class ZkJRViewer extends Window implements EventListener<Event>, ITabOnCl
|
||||||
north.appendChild(toolbar);
|
north.appendChild(toolbar);
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setFlex(true);
|
|
||||||
layout.appendChild(center);
|
layout.appendChild(center);
|
||||||
iframe = new Iframe();
|
iframe = new Iframe();
|
||||||
|
iframe.setHflex("true");
|
||||||
|
iframe.setVflex("true");
|
||||||
iframe.setId("reportFrame");
|
iframe.setId("reportFrame");
|
||||||
iframe.setHeight("100%");
|
iframe.setHeight("100%");
|
||||||
iframe.setWidth("100%");
|
iframe.setWidth("100%");
|
||||||
|
|
|
@ -316,9 +316,10 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
||||||
north.appendChild(toolBar);
|
north.appendChild(toolBar);
|
||||||
|
|
||||||
Center center = new Center();
|
Center center = new Center();
|
||||||
center.setFlex(true);
|
|
||||||
layout.appendChild(center);
|
layout.appendChild(center);
|
||||||
iframe = new Iframe();
|
iframe = new Iframe();
|
||||||
|
iframe.setHflex("true");
|
||||||
|
iframe.setVflex("true");
|
||||||
iframe.setId("reportFrame");
|
iframe.setId("reportFrame");
|
||||||
center.appendChild(iframe);
|
center.appendChild(iframe);
|
||||||
|
|
||||||
|
@ -806,7 +807,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
||||||
|
|
||||||
Hbox hb = new Hbox();
|
Hbox hb = new Hbox();
|
||||||
Div div = new Div();
|
Div div = new Div();
|
||||||
div.setAlign("right");
|
div.setStyle("text-align: right;");
|
||||||
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
div.appendChild(new Label(Msg.getMsg(Env.getCtx(), "FilesOfType")));
|
||||||
hb.appendChild(div);
|
hb.appendChild(div);
|
||||||
hb.appendChild(cboType);
|
hb.appendChild(cboType);
|
||||||
|
|
Loading…
Reference in New Issue