IDEMPIERE-4168 Move Webstore out of core

This commit is contained in:
hengsin 2020-02-07 11:01:05 +08:00
parent dcf44a0f03
commit b8cc9cf2b4
212 changed files with 2 additions and 28769 deletions

View File

@ -394,9 +394,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -394,9 +394,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -394,9 +394,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -394,9 +394,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -394,9 +394,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -20,7 +20,6 @@ import java.io.File;
import java.util.logging.Level;
import org.compiere.model.MClient;
import org.compiere.model.MStore;
import org.compiere.util.Env;
import org.compiere.util.Ini;
@ -71,15 +70,6 @@ public class EMailTest extends SvrProcess
else
addLog(0, null, null, "Not Found Directory: " + client.getDocumentDir());
}
MStore[] wstores = MStore.getOfClient(client);
for (int i = 0; i < wstores.length; i++)
{
MStore store = wstores[i];
String test = store.testEMail();
msglog = new StringBuilder().append(store.getName()).append(": ").append(test);
addLog(0, null, null, msglog.toString());
}
return clientTest;
} // doIt

View File

@ -25,7 +25,6 @@ import java.util.logging.Level;
import org.compiere.model.MClient;
import org.compiere.model.MInterestArea;
import org.compiere.model.MMailText;
import org.compiere.model.MStore;
import org.compiere.model.MUser;
import org.compiere.model.MUserMail;
import org.compiere.util.DB;
@ -144,18 +143,6 @@ public class SendMailText extends SvrProcess
.append(": ").append(m_ia.getName())
.append("\n").append(Msg.getMsg(getCtx(), "UnsubscribeInfo"))
.append("\n");
MStore[] wstores = MStore.getOfClient(m_client);
int index = 0;
for (int i = 0; i < wstores.length; i++)
{
if (wstores[i].isDefault())
{
index = i;
break;
}
}
if (wstores.length > 0)
unsubscribe.append(wstores[index].getWebContext(true));
}
//

View File

@ -268,6 +268,4 @@ public interface I_AD_UserMail
* Web Store Mail Message Template
*/
public int getW_MailMsg_ID();
public org.compiere.model.I_W_MailMsg getW_MailMsg() throws RuntimeException;
}

View File

@ -1,382 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_Advertisement
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_Advertisement
{
/** TableName=W_Advertisement */
public static final String Table_Name = "W_Advertisement";
/** AD_Table_ID=579 */
public static final int Table_ID = 579;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 3 - Client - Org
*/
BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name AdText */
public static final String COLUMNNAME_AdText = "AdText";
/** Set Advertisement Text.
* Text of the Advertisement
*/
public void setAdText (String AdText);
/** Get Advertisement Text.
* Text of the Advertisement
*/
public String getAdText();
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
/** Set User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID);
/** Get User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID();
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
/** Column name C_BPartner_ID */
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
/** Set Business Partner .
* Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID);
/** Get Business Partner .
* Identifies a Business Partner
*/
public int getC_BPartner_ID();
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
* Optional short description of the record
*/
public String getDescription();
/** Column name Help */
public static final String COLUMNNAME_Help = "Help";
/** Set Comment/Help.
* Comment or Hint
*/
public void setHelp (String Help);
/** Get Comment/Help.
* Comment or Hint
*/
public String getHelp();
/** Column name ImageURL */
public static final String COLUMNNAME_ImageURL = "ImageURL";
/** Set Image URL.
* URL of image
*/
public void setImageURL (String ImageURL);
/** Get Image URL.
* URL of image
*/
public String getImageURL();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsSelfService */
public static final String COLUMNNAME_IsSelfService = "IsSelfService";
/** Set Self-Service.
* This is a Self-Service entry or this entry can be changed via Self-Service
*/
public void setIsSelfService (boolean IsSelfService);
/** Get Self-Service.
* This is a Self-Service entry or this entry can be changed via Self-Service
*/
public boolean isSelfService();
/** Column name Name */
public static final String COLUMNNAME_Name = "Name";
/** Set Name.
* Alphanumeric identifier of the entity
*/
public void setName (String Name);
/** Get Name.
* Alphanumeric identifier of the entity
*/
public String getName();
/** Column name Processing */
public static final String COLUMNNAME_Processing = "Processing";
/** Set Process Now */
public void setProcessing (boolean Processing);
/** Get Process Now */
public boolean isProcessing();
/** Column name PublishStatus */
public static final String COLUMNNAME_PublishStatus = "PublishStatus";
/** Set Publication Status.
* Status of Publication
*/
public void setPublishStatus (String PublishStatus);
/** Get Publication Status.
* Status of Publication
*/
public String getPublishStatus();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom";
/** Set Valid from.
* Valid from including this date (first day)
*/
public void setValidFrom (Timestamp ValidFrom);
/** Get Valid from.
* Valid from including this date (first day)
*/
public Timestamp getValidFrom();
/** Column name ValidTo */
public static final String COLUMNNAME_ValidTo = "ValidTo";
/** Set Valid to.
* Valid to including this date (last day)
*/
public void setValidTo (Timestamp ValidTo);
/** Get Valid to.
* Valid to including this date (last day)
*/
public Timestamp getValidTo();
/** Column name Version */
public static final String COLUMNNAME_Version = "Version";
/** Set Version.
* Version of the table definition
*/
public void setVersion (int Version);
/** Get Version.
* Version of the table definition
*/
public int getVersion();
/** Column name W_Advertisement_ID */
public static final String COLUMNNAME_W_Advertisement_ID = "W_Advertisement_ID";
/** Set Advertisement.
* Web Advertisement
*/
public void setW_Advertisement_ID (int W_Advertisement_ID);
/** Get Advertisement.
* Web Advertisement
*/
public int getW_Advertisement_ID();
/** Column name W_Advertisement_UU */
public static final String COLUMNNAME_W_Advertisement_UU = "W_Advertisement_UU";
/** Set W_Advertisement_UU */
public void setW_Advertisement_UU (String W_Advertisement_UU);
/** Get W_Advertisement_UU */
public String getW_Advertisement_UU();
/** Column name W_ClickCount_ID */
public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID";
/** Set Click Count.
* Web Click Management
*/
public void setW_ClickCount_ID (int W_ClickCount_ID);
/** Get Click Count.
* Web Click Management
*/
public int getW_ClickCount_ID();
public org.compiere.model.I_W_ClickCount getW_ClickCount() throws RuntimeException;
/** Column name W_CounterCount_ID */
public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID";
/** Set Counter Count.
* Web Counter Count Management
*/
public void setW_CounterCount_ID (int W_CounterCount_ID);
/** Get Counter Count.
* Web Counter Count Management
*/
public int getW_CounterCount_ID();
public org.compiere.model.I_W_CounterCount getW_CounterCount() throws RuntimeException;
/** Column name WebParam1 */
public static final String COLUMNNAME_WebParam1 = "WebParam1";
/** Set Web Parameter 1.
* Web Site Parameter 1 (default: header image)
*/
public void setWebParam1 (String WebParam1);
/** Get Web Parameter 1.
* Web Site Parameter 1 (default: header image)
*/
public String getWebParam1();
/** Column name WebParam2 */
public static final String COLUMNNAME_WebParam2 = "WebParam2";
/** Set Web Parameter 2.
* Web Site Parameter 2 (default index page)
*/
public void setWebParam2 (String WebParam2);
/** Get Web Parameter 2.
* Web Site Parameter 2 (default index page)
*/
public String getWebParam2();
/** Column name WebParam3 */
public static final String COLUMNNAME_WebParam3 = "WebParam3";
/** Set Web Parameter 3.
* Web Site Parameter 3 (default left - menu)
*/
public void setWebParam3 (String WebParam3);
/** Get Web Parameter 3.
* Web Site Parameter 3 (default left - menu)
*/
public String getWebParam3();
/** Column name WebParam4 */
public static final String COLUMNNAME_WebParam4 = "WebParam4";
/** Set Web Parameter 4.
* Web Site Parameter 4 (default footer left)
*/
public void setWebParam4 (String WebParam4);
/** Get Web Parameter 4.
* Web Site Parameter 4 (default footer left)
*/
public String getWebParam4();
}

View File

@ -1,198 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_Basket
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_Basket
{
/** TableName=W_Basket */
public static final String Table_Name = "W_Basket";
/** AD_Table_ID=402 */
public static final int Table_ID = 402;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
/** Set User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID);
/** Get User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID();
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
/** Column name C_BPartner_ID */
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
/** Set Business Partner .
* Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID);
/** Get Business Partner .
* Identifies a Business Partner
*/
public int getC_BPartner_ID();
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name EMail */
public static final String COLUMNNAME_EMail = "EMail";
/** Set EMail Address.
* Electronic Mail Address
*/
public void setEMail (String EMail);
/** Get EMail Address.
* Electronic Mail Address
*/
public String getEMail();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name M_PriceList_ID */
public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID";
/** Set Price List.
* Unique identifier of a Price List
*/
public void setM_PriceList_ID (int M_PriceList_ID);
/** Get Price List.
* Unique identifier of a Price List
*/
public int getM_PriceList_ID();
public org.compiere.model.I_M_PriceList getM_PriceList() throws RuntimeException;
/** Column name Session_ID */
public static final String COLUMNNAME_Session_ID = "Session_ID";
/** Set Session ID */
public void setSession_ID (int Session_ID);
/** Get Session ID */
public int getSession_ID();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name W_Basket_ID */
public static final String COLUMNNAME_W_Basket_ID = "W_Basket_ID";
/** Set Basket.
* Web Basket
*/
public void setW_Basket_ID (int W_Basket_ID);
/** Get Basket.
* Web Basket
*/
public int getW_Basket_ID();
/** Column name W_Basket_UU */
public static final String COLUMNNAME_W_Basket_UU = "W_Basket_UU";
/** Set W_Basket_UU */
public void setW_Basket_UU (String W_Basket_UU);
/** Get W_Basket_UU */
public String getW_Basket_UU();
}

View File

@ -1,222 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_BasketLine
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_BasketLine
{
/** TableName=W_BasketLine */
public static final String Table_Name = "W_BasketLine";
/** AD_Table_ID=549 */
public static final int Table_ID = 549;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
* Optional short description of the record
*/
public String getDescription();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name Line */
public static final String COLUMNNAME_Line = "Line";
/** Set Line No.
* Unique line for this document
*/
public void setLine (int Line);
/** Get Line No.
* Unique line for this document
*/
public int getLine();
/** Column name M_Product_ID */
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
/** Set Product.
* Product, Service, Item
*/
public void setM_Product_ID (int M_Product_ID);
/** Get Product.
* Product, Service, Item
*/
public int getM_Product_ID();
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException;
/** Column name Price */
public static final String COLUMNNAME_Price = "Price";
/** Set Price.
* Price
*/
public void setPrice (BigDecimal Price);
/** Get Price.
* Price
*/
public BigDecimal getPrice();
/** Column name Product */
public static final String COLUMNNAME_Product = "Product";
/** Set Product */
public void setProduct (String Product);
/** Get Product */
public String getProduct();
/** Column name Qty */
public static final String COLUMNNAME_Qty = "Qty";
/** Set Quantity.
* Quantity
*/
public void setQty (BigDecimal Qty);
/** Get Quantity.
* Quantity
*/
public BigDecimal getQty();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name W_Basket_ID */
public static final String COLUMNNAME_W_Basket_ID = "W_Basket_ID";
/** Set Basket.
* Web Basket
*/
public void setW_Basket_ID (int W_Basket_ID);
/** Get Basket.
* Web Basket
*/
public int getW_Basket_ID();
public org.compiere.model.I_W_Basket getW_Basket() throws RuntimeException;
/** Column name W_BasketLine_ID */
public static final String COLUMNNAME_W_BasketLine_ID = "W_BasketLine_ID";
/** Set Basket Line.
* Web Basket Line
*/
public void setW_BasketLine_ID (int W_BasketLine_ID);
/** Get Basket Line.
* Web Basket Line
*/
public int getW_BasketLine_ID();
/** Column name W_BasketLine_UU */
public static final String COLUMNNAME_W_BasketLine_UU = "W_BasketLine_UU";
/** Set W_BasketLine_UU */
public void setW_BasketLine_UU (String W_BasketLine_UU);
/** Get W_BasketLine_UU */
public String getW_BasketLine_UU();
}

View File

@ -1,263 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_Click
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_Click
{
/** TableName=W_Click */
public static final String Table_Name = "W_Click";
/** AD_Table_ID=550 */
public static final int Table_ID = 550;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 3 - Client - Org
*/
BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */
/** Column name AcceptLanguage */
public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage";
/** Set Accept Language.
* Language accepted based on browser information
*/
public void setAcceptLanguage (String AcceptLanguage);
/** Get Accept Language.
* Language accepted based on browser information
*/
public String getAcceptLanguage();
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
/** Set User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID);
/** Get User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name EMail */
public static final String COLUMNNAME_EMail = "EMail";
/** Set EMail Address.
* Electronic Mail Address
*/
public void setEMail (String EMail);
/** Get EMail Address.
* Electronic Mail Address
*/
public String getEMail();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name Processed */
public static final String COLUMNNAME_Processed = "Processed";
/** Set Processed.
* The document has been processed
*/
public void setProcessed (boolean Processed);
/** Get Processed.
* The document has been processed
*/
public boolean isProcessed();
/** Column name Referrer */
public static final String COLUMNNAME_Referrer = "Referrer";
/** Set Referrer.
* Referring web address
*/
public void setReferrer (String Referrer);
/** Get Referrer.
* Referring web address
*/
public String getReferrer();
/** Column name Remote_Addr */
public static final String COLUMNNAME_Remote_Addr = "Remote_Addr";
/** Set Remote Addr.
* Remote Address
*/
public void setRemote_Addr (String Remote_Addr);
/** Get Remote Addr.
* Remote Address
*/
public String getRemote_Addr();
/** Column name Remote_Host */
public static final String COLUMNNAME_Remote_Host = "Remote_Host";
/** Set Remote Host.
* Remote host Info
*/
public void setRemote_Host (String Remote_Host);
/** Get Remote Host.
* Remote host Info
*/
public String getRemote_Host();
/** Column name TargetURL */
public static final String COLUMNNAME_TargetURL = "TargetURL";
/** Set Target URL.
* URL for the Target
*/
public void setTargetURL (String TargetURL);
/** Get Target URL.
* URL for the Target
*/
public String getTargetURL();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name UserAgent */
public static final String COLUMNNAME_UserAgent = "UserAgent";
/** Set User Agent.
* Browser Used
*/
public void setUserAgent (String UserAgent);
/** Get User Agent.
* Browser Used
*/
public String getUserAgent();
/** Column name W_ClickCount_ID */
public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID";
/** Set Click Count.
* Web Click Management
*/
public void setW_ClickCount_ID (int W_ClickCount_ID);
/** Get Click Count.
* Web Click Management
*/
public int getW_ClickCount_ID();
public org.compiere.model.I_W_ClickCount getW_ClickCount() throws RuntimeException;
/** Column name W_Click_ID */
public static final String COLUMNNAME_W_Click_ID = "W_Click_ID";
/** Set Web Click.
* Individual Web Click
*/
public void setW_Click_ID (int W_Click_ID);
/** Get Web Click.
* Individual Web Click
*/
public int getW_Click_ID();
/** Column name W_Click_UU */
public static final String COLUMNNAME_W_Click_UU = "W_Click_UU";
/** Set W_Click_UU */
public void setW_Click_UU (String W_Click_UU);
/** Get W_Click_UU */
public String getW_Click_UU();
}

View File

@ -1,198 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_ClickCount
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_ClickCount
{
/** TableName=W_ClickCount */
public static final String Table_Name = "W_ClickCount";
/** AD_Table_ID=553 */
public static final int Table_ID = 553;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 3 - Client - Org
*/
BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name C_BPartner_ID */
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
/** Set Business Partner .
* Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID);
/** Get Business Partner .
* Identifies a Business Partner
*/
public int getC_BPartner_ID();
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
/** Column name Counter */
public static final String COLUMNNAME_Counter = "Counter";
/** Set Counter.
* Count Value
*/
public void setCounter (int Counter);
/** Get Counter.
* Count Value
*/
public int getCounter();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
* Optional short description of the record
*/
public String getDescription();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name Name */
public static final String COLUMNNAME_Name = "Name";
/** Set Name.
* Alphanumeric identifier of the entity
*/
public void setName (String Name);
/** Get Name.
* Alphanumeric identifier of the entity
*/
public String getName();
/** Column name TargetURL */
public static final String COLUMNNAME_TargetURL = "TargetURL";
/** Set Target URL.
* URL for the Target
*/
public void setTargetURL (String TargetURL);
/** Get Target URL.
* URL for the Target
*/
public String getTargetURL();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name W_ClickCount_ID */
public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID";
/** Set Click Count.
* Web Click Management
*/
public void setW_ClickCount_ID (int W_ClickCount_ID);
/** Get Click Count.
* Web Click Management
*/
public int getW_ClickCount_ID();
/** Column name W_ClickCount_UU */
public static final String COLUMNNAME_W_ClickCount_UU = "W_ClickCount_UU";
/** Set W_ClickCount_UU */
public void setW_ClickCount_UU (String W_ClickCount_UU);
/** Get W_ClickCount_UU */
public String getW_ClickCount_UU();
}

View File

@ -1,259 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_Counter
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_Counter
{
/** TableName=W_Counter */
public static final String Table_Name = "W_Counter";
/** AD_Table_ID=403 */
public static final int Table_ID = 403;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 3 - Client - Org
*/
BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */
/** Column name AcceptLanguage */
public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage";
/** Set Accept Language.
* Language accepted based on browser information
*/
public void setAcceptLanguage (String AcceptLanguage);
/** Get Accept Language.
* Language accepted based on browser information
*/
public String getAcceptLanguage();
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
/** Set User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID);
/** Get User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name EMail */
public static final String COLUMNNAME_EMail = "EMail";
/** Set EMail Address.
* Electronic Mail Address
*/
public void setEMail (String EMail);
/** Get EMail Address.
* Electronic Mail Address
*/
public String getEMail();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name PageURL */
public static final String COLUMNNAME_PageURL = "PageURL";
/** Set Page URL */
public void setPageURL (String PageURL);
/** Get Page URL */
public String getPageURL();
/** Column name Processed */
public static final String COLUMNNAME_Processed = "Processed";
/** Set Processed.
* The document has been processed
*/
public void setProcessed (boolean Processed);
/** Get Processed.
* The document has been processed
*/
public boolean isProcessed();
/** Column name Referrer */
public static final String COLUMNNAME_Referrer = "Referrer";
/** Set Referrer.
* Referring web address
*/
public void setReferrer (String Referrer);
/** Get Referrer.
* Referring web address
*/
public String getReferrer();
/** Column name Remote_Addr */
public static final String COLUMNNAME_Remote_Addr = "Remote_Addr";
/** Set Remote Addr.
* Remote Address
*/
public void setRemote_Addr (String Remote_Addr);
/** Get Remote Addr.
* Remote Address
*/
public String getRemote_Addr();
/** Column name Remote_Host */
public static final String COLUMNNAME_Remote_Host = "Remote_Host";
/** Set Remote Host.
* Remote host Info
*/
public void setRemote_Host (String Remote_Host);
/** Get Remote Host.
* Remote host Info
*/
public String getRemote_Host();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name UserAgent */
public static final String COLUMNNAME_UserAgent = "UserAgent";
/** Set User Agent.
* Browser Used
*/
public void setUserAgent (String UserAgent);
/** Get User Agent.
* Browser Used
*/
public String getUserAgent();
/** Column name W_CounterCount_ID */
public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID";
/** Set Counter Count.
* Web Counter Count Management
*/
public void setW_CounterCount_ID (int W_CounterCount_ID);
/** Get Counter Count.
* Web Counter Count Management
*/
public int getW_CounterCount_ID();
public org.compiere.model.I_W_CounterCount getW_CounterCount() throws RuntimeException;
/** Column name W_Counter_ID */
public static final String COLUMNNAME_W_Counter_ID = "W_Counter_ID";
/** Set Web Counter.
* Individual Count hit
*/
public void setW_Counter_ID (int W_Counter_ID);
/** Get Web Counter.
* Individual Count hit
*/
public int getW_Counter_ID();
/** Column name W_Counter_UU */
public static final String COLUMNNAME_W_Counter_UU = "W_Counter_UU";
/** Set W_Counter_UU */
public void setW_Counter_UU (String W_Counter_UU);
/** Get W_Counter_UU */
public String getW_Counter_UU();
}

View File

@ -1,194 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_CounterCount
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_CounterCount
{
/** TableName=W_CounterCount */
public static final String Table_Name = "W_CounterCount";
/** AD_Table_ID=552 */
public static final int Table_ID = 552;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 3 - Client - Org
*/
BigDecimal accessLevel = BigDecimal.valueOf(3);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name C_BPartner_ID */
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
/** Set Business Partner .
* Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID);
/** Get Business Partner .
* Identifies a Business Partner
*/
public int getC_BPartner_ID();
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
/** Column name Counter */
public static final String COLUMNNAME_Counter = "Counter";
/** Set Counter.
* Count Value
*/
public void setCounter (int Counter);
/** Get Counter.
* Count Value
*/
public int getCounter();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
* Optional short description of the record
*/
public String getDescription();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name Name */
public static final String COLUMNNAME_Name = "Name";
/** Set Name.
* Alphanumeric identifier of the entity
*/
public void setName (String Name);
/** Get Name.
* Alphanumeric identifier of the entity
*/
public String getName();
/** Column name PageURL */
public static final String COLUMNNAME_PageURL = "PageURL";
/** Set Page URL */
public void setPageURL (String PageURL);
/** Get Page URL */
public String getPageURL();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name W_CounterCount_ID */
public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID";
/** Set Counter Count.
* Web Counter Count Management
*/
public void setW_CounterCount_ID (int W_CounterCount_ID);
/** Get Counter Count.
* Web Counter Count Management
*/
public int getW_CounterCount_ID();
/** Column name W_CounterCount_UU */
public static final String COLUMNNAME_W_CounterCount_UU = "W_CounterCount_UU";
/** Set W_CounterCount_UU */
public void setW_CounterCount_UU (String W_CounterCount_UU);
/** Get W_CounterCount_UU */
public String getW_CounterCount_UU();
}

View File

@ -1,237 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_MailMsg
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_MailMsg
{
/** TableName=W_MailMsg */
public static final String Table_Name = "W_MailMsg";
/** AD_Table_ID=780 */
public static final int Table_ID = 780;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 2 - Client
*/
BigDecimal accessLevel = BigDecimal.valueOf(2);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
* Optional short description of the record
*/
public String getDescription();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name MailMsgType */
public static final String COLUMNNAME_MailMsgType = "MailMsgType";
/** Set Message Type.
* Mail Message Type
*/
public void setMailMsgType (String MailMsgType);
/** Get Message Type.
* Mail Message Type
*/
public String getMailMsgType();
/** Column name Message */
public static final String COLUMNNAME_Message = "Message";
/** Set Message.
* EMail Message
*/
public void setMessage (String Message);
/** Get Message.
* EMail Message
*/
public String getMessage();
/** Column name Message2 */
public static final String COLUMNNAME_Message2 = "Message2";
/** Set Message 2.
* Optional second part of the EMail Message
*/
public void setMessage2 (String Message2);
/** Get Message 2.
* Optional second part of the EMail Message
*/
public String getMessage2();
/** Column name Message3 */
public static final String COLUMNNAME_Message3 = "Message3";
/** Set Message 3.
* Optional third part of the EMail Message
*/
public void setMessage3 (String Message3);
/** Get Message 3.
* Optional third part of the EMail Message
*/
public String getMessage3();
/** Column name Name */
public static final String COLUMNNAME_Name = "Name";
/** Set Name.
* Alphanumeric identifier of the entity
*/
public void setName (String Name);
/** Get Name.
* Alphanumeric identifier of the entity
*/
public String getName();
/** Column name Subject */
public static final String COLUMNNAME_Subject = "Subject";
/** Set Subject.
* Email Message Subject
*/
public void setSubject (String Subject);
/** Get Subject.
* Email Message Subject
*/
public String getSubject();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name W_MailMsg_ID */
public static final String COLUMNNAME_W_MailMsg_ID = "W_MailMsg_ID";
/** Set Mail Message.
* Web Store Mail Message Template
*/
public void setW_MailMsg_ID (int W_MailMsg_ID);
/** Get Mail Message.
* Web Store Mail Message Template
*/
public int getW_MailMsg_ID();
/** Column name W_MailMsg_UU */
public static final String COLUMNNAME_W_MailMsg_UU = "W_MailMsg_UU";
/** Set W_MailMsg_UU */
public void setW_MailMsg_UU (String W_MailMsg_UU);
/** Get W_MailMsg_UU */
public String getW_MailMsg_UU();
/** Column name W_Store_ID */
public static final String COLUMNNAME_W_Store_ID = "W_Store_ID";
/** Set Web Store.
* A Web Store of the Client
*/
public void setW_Store_ID (int W_Store_ID);
/** Get Web Store.
* A Web Store of the Client
*/
public int getW_Store_ID();
public org.compiere.model.I_W_Store getW_Store() throws RuntimeException;
}

View File

@ -1,581 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for W_Store
* @author iDempiere (generated)
* @version Release 7.1
*/
public interface I_W_Store
{
/** TableName=W_Store */
public static final String Table_Name = "W_Store";
/** AD_Table_ID=778 */
public static final int Table_ID = 778;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 2 - Client
*/
BigDecimal accessLevel = BigDecimal.valueOf(2);
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
/** Set Organization.
* Organizational entity within client
*/
public void setAD_Org_ID (int AD_Org_ID);
/** Get Organization.
* Organizational entity within client
*/
public int getAD_Org_ID();
/** Column name C_PaymentTerm_ID */
public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID";
/** Set Payment Term.
* The terms of Payment (timing, discount)
*/
public void setC_PaymentTerm_ID (int C_PaymentTerm_ID);
/** Get Payment Term.
* The terms of Payment (timing, discount)
*/
public int getC_PaymentTerm_ID();
public org.compiere.model.I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException;
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
/** Set Description.
* Optional short description of the record
*/
public void setDescription (String Description);
/** Get Description.
* Optional short description of the record
*/
public String getDescription();
/** Column name EMailFooter */
public static final String COLUMNNAME_EMailFooter = "EMailFooter";
/** Set EMail Footer.
* Footer added to EMails
*/
public void setEMailFooter (String EMailFooter);
/** Get EMail Footer.
* Footer added to EMails
*/
public String getEMailFooter();
/** Column name EMailHeader */
public static final String COLUMNNAME_EMailHeader = "EMailHeader";
/** Set EMail Header.
* Header added to EMails
*/
public void setEMailHeader (String EMailHeader);
/** Get EMail Header.
* Header added to EMails
*/
public String getEMailHeader();
/** Column name Help */
public static final String COLUMNNAME_Help = "Help";
/** Set Comment/Help.
* Comment or Hint
*/
public void setHelp (String Help);
/** Get Comment/Help.
* Comment or Hint
*/
public String getHelp();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsDefault */
public static final String COLUMNNAME_IsDefault = "IsDefault";
/** Set Default.
* Default value
*/
public void setIsDefault (boolean IsDefault);
/** Get Default.
* Default value
*/
public boolean isDefault();
/** Column name IsMenuAssets */
public static final String COLUMNNAME_IsMenuAssets = "IsMenuAssets";
/** Set Menu Assets.
* Show Menu Assets
*/
public void setIsMenuAssets (boolean IsMenuAssets);
/** Get Menu Assets.
* Show Menu Assets
*/
public boolean isMenuAssets();
/** Column name IsMenuContact */
public static final String COLUMNNAME_IsMenuContact = "IsMenuContact";
/** Set Menu Contact.
* Show Menu Contact
*/
public void setIsMenuContact (boolean IsMenuContact);
/** Get Menu Contact.
* Show Menu Contact
*/
public boolean isMenuContact();
/** Column name IsMenuInterests */
public static final String COLUMNNAME_IsMenuInterests = "IsMenuInterests";
/** Set Menu Interests.
* Show Menu Interests
*/
public void setIsMenuInterests (boolean IsMenuInterests);
/** Get Menu Interests.
* Show Menu Interests
*/
public boolean isMenuInterests();
/** Column name IsMenuInvoices */
public static final String COLUMNNAME_IsMenuInvoices = "IsMenuInvoices";
/** Set Menu Invoices.
* Show Menu Invoices
*/
public void setIsMenuInvoices (boolean IsMenuInvoices);
/** Get Menu Invoices.
* Show Menu Invoices
*/
public boolean isMenuInvoices();
/** Column name IsMenuOrders */
public static final String COLUMNNAME_IsMenuOrders = "IsMenuOrders";
/** Set Menu Orders.
* Show Menu Orders
*/
public void setIsMenuOrders (boolean IsMenuOrders);
/** Get Menu Orders.
* Show Menu Orders
*/
public boolean isMenuOrders();
/** Column name IsMenuPayments */
public static final String COLUMNNAME_IsMenuPayments = "IsMenuPayments";
/** Set Menu Payments.
* Show Menu Payments
*/
public void setIsMenuPayments (boolean IsMenuPayments);
/** Get Menu Payments.
* Show Menu Payments
*/
public boolean isMenuPayments();
/** Column name IsMenuRegistrations */
public static final String COLUMNNAME_IsMenuRegistrations = "IsMenuRegistrations";
/** Set Menu Registrations.
* Show Menu Registrations
*/
public void setIsMenuRegistrations (boolean IsMenuRegistrations);
/** Get Menu Registrations.
* Show Menu Registrations
*/
public boolean isMenuRegistrations();
/** Column name IsMenuRequests */
public static final String COLUMNNAME_IsMenuRequests = "IsMenuRequests";
/** Set Menu Requests.
* Show Menu Requests
*/
public void setIsMenuRequests (boolean IsMenuRequests);
/** Get Menu Requests.
* Show Menu Requests
*/
public boolean isMenuRequests();
/** Column name IsMenuRfQs */
public static final String COLUMNNAME_IsMenuRfQs = "IsMenuRfQs";
/** Set Menu RfQs.
* Show Menu RfQs
*/
public void setIsMenuRfQs (boolean IsMenuRfQs);
/** Get Menu RfQs.
* Show Menu RfQs
*/
public boolean isMenuRfQs();
/** Column name IsMenuShipments */
public static final String COLUMNNAME_IsMenuShipments = "IsMenuShipments";
/** Set Menu Shipments.
* Show Menu Shipments
*/
public void setIsMenuShipments (boolean IsMenuShipments);
/** Get Menu Shipments.
* Show Menu Shipments
*/
public boolean isMenuShipments();
/** Column name M_PriceList_ID */
public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID";
/** Set Price List.
* Unique identifier of a Price List
*/
public void setM_PriceList_ID (int M_PriceList_ID);
/** Get Price List.
* Unique identifier of a Price List
*/
public int getM_PriceList_ID();
public org.compiere.model.I_M_PriceList getM_PriceList() throws RuntimeException;
/** Column name M_Warehouse_ID */
public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID";
/** Set Warehouse.
* Storage Warehouse and Service Point
*/
public void setM_Warehouse_ID (int M_Warehouse_ID);
/** Get Warehouse.
* Storage Warehouse and Service Point
*/
public int getM_Warehouse_ID();
public org.compiere.model.I_M_Warehouse getM_Warehouse() throws RuntimeException;
/** Column name Name */
public static final String COLUMNNAME_Name = "Name";
/** Set Name.
* Alphanumeric identifier of the entity
*/
public void setName (String Name);
/** Get Name.
* Alphanumeric identifier of the entity
*/
public String getName();
/** Column name SalesRep_ID */
public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
/** Set Sales Representative.
* Sales Representative or Company Agent
*/
public void setSalesRep_ID (int SalesRep_ID);
/** Get Sales Representative.
* Sales Representative or Company Agent
*/
public int getSalesRep_ID();
public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;
/** Column name Stylesheet */
public static final String COLUMNNAME_Stylesheet = "Stylesheet";
/** Set Stylesheet.
* CSS (Stylesheet) used
*/
public void setStylesheet (String Stylesheet);
/** Get Stylesheet.
* CSS (Stylesheet) used
*/
public String getStylesheet();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name URL */
public static final String COLUMNNAME_URL = "URL";
/** Set URL.
* Full URL address - e.g. http://www.idempiere.org
*/
public void setURL (String URL);
/** Get URL.
* Full URL address - e.g. http://www.idempiere.org
*/
public String getURL();
/** Column name WebContext */
public static final String COLUMNNAME_WebContext = "WebContext";
/** Set Web Context.
* Web Server Context - e.g. /wstore
*/
public void setWebContext (String WebContext);
/** Get Web Context.
* Web Server Context - e.g. /wstore
*/
public String getWebContext();
/** Column name WebInfo */
public static final String COLUMNNAME_WebInfo = "WebInfo";
/** Set Web Store Info.
* Web Store Header Information
*/
public void setWebInfo (String WebInfo);
/** Get Web Store Info.
* Web Store Header Information
*/
public String getWebInfo();
/** Column name WebOrderEMail */
public static final String COLUMNNAME_WebOrderEMail = "WebOrderEMail";
/** Set Web Order EMail.
* EMail address to receive notifications when web orders were processed
*/
public void setWebOrderEMail (String WebOrderEMail);
/** Get Web Order EMail.
* EMail address to receive notifications when web orders were processed
*/
public String getWebOrderEMail();
/** Column name WebParam1 */
public static final String COLUMNNAME_WebParam1 = "WebParam1";
/** Set Web Parameter 1.
* Web Site Parameter 1 (default: header image)
*/
public void setWebParam1 (String WebParam1);
/** Get Web Parameter 1.
* Web Site Parameter 1 (default: header image)
*/
public String getWebParam1();
/** Column name WebParam2 */
public static final String COLUMNNAME_WebParam2 = "WebParam2";
/** Set Web Parameter 2.
* Web Site Parameter 2 (default index page)
*/
public void setWebParam2 (String WebParam2);
/** Get Web Parameter 2.
* Web Site Parameter 2 (default index page)
*/
public String getWebParam2();
/** Column name WebParam3 */
public static final String COLUMNNAME_WebParam3 = "WebParam3";
/** Set Web Parameter 3.
* Web Site Parameter 3 (default left - menu)
*/
public void setWebParam3 (String WebParam3);
/** Get Web Parameter 3.
* Web Site Parameter 3 (default left - menu)
*/
public String getWebParam3();
/** Column name WebParam4 */
public static final String COLUMNNAME_WebParam4 = "WebParam4";
/** Set Web Parameter 4.
* Web Site Parameter 4 (default footer left)
*/
public void setWebParam4 (String WebParam4);
/** Get Web Parameter 4.
* Web Site Parameter 4 (default footer left)
*/
public String getWebParam4();
/** Column name WebParam5 */
public static final String COLUMNNAME_WebParam5 = "WebParam5";
/** Set Web Parameter 5.
* Web Site Parameter 5 (default footer center)
*/
public void setWebParam5 (String WebParam5);
/** Get Web Parameter 5.
* Web Site Parameter 5 (default footer center)
*/
public String getWebParam5();
/** Column name WebParam6 */
public static final String COLUMNNAME_WebParam6 = "WebParam6";
/** Set Web Parameter 6.
* Web Site Parameter 6 (default footer right)
*/
public void setWebParam6 (String WebParam6);
/** Get Web Parameter 6.
* Web Site Parameter 6 (default footer right)
*/
public String getWebParam6();
/** Column name WStoreEMail */
public static final String COLUMNNAME_WStoreEMail = "WStoreEMail";
/** Set Web Store EMail.
* EMail address used as the sender (From)
*/
public void setWStoreEMail (String WStoreEMail);
/** Get Web Store EMail.
* EMail address used as the sender (From)
*/
public String getWStoreEMail();
/** Column name W_Store_ID */
public static final String COLUMNNAME_W_Store_ID = "W_Store_ID";
/** Set Web Store.
* A Web Store of the Client
*/
public void setW_Store_ID (int W_Store_ID);
/** Get Web Store.
* A Web Store of the Client
*/
public int getW_Store_ID();
/** Column name WStoreUser */
public static final String COLUMNNAME_WStoreUser = "WStoreUser";
/** Set WebStore User.
* User ID of the Web Store EMail address
*/
public void setWStoreUser (String WStoreUser);
/** Get WebStore User.
* User ID of the Web Store EMail address
*/
public String getWStoreUser();
/** Column name WStoreUserPW */
public static final String COLUMNNAME_WStoreUserPW = "WStoreUserPW";
/** Set WebStore Password.
* Password of the Web Store EMail address
*/
public void setWStoreUserPW (String WStoreUserPW);
/** Get WebStore Password.
* Password of the Web Store EMail address
*/
public String getWStoreUserPW();
/** Column name W_Store_UU */
public static final String COLUMNNAME_W_Store_UU = "W_Store_UU";
/** Set W_Store_UU */
public void setW_Store_UU (String W_Store_UU);
/** Get W_Store_UU */
public String getW_Store_UU();
}

View File

@ -1,163 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.DB;
import org.compiere.util.ValueNamePair;
/**
* Advertisement Model
*
* @author Jorg Janke
* @version $Id: MAdvertisement.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
*/
public class MAdvertisement extends X_W_Advertisement
{
/**
*
*/
private static final long serialVersionUID = 8129122675267734690L;
/**
* Default Constructor
* @param ctx context
* @param W_Advertisement_ID id
* @param trxName transaction
*/
public MAdvertisement (Properties ctx, int W_Advertisement_ID, String trxName)
{
super (ctx, W_Advertisement_ID, trxName);
/** if (W_Advertisement_ID == 0)
{
setC_BPartner_ID (0);
setIsSelfService (false);
setName (null);
setW_Advertisement_ID (0);
}
**/
} // MAdvertisement
/**
* Load Constructor
* @param ctx context
* @param rs result set
* @param trxName transaction
*/
public MAdvertisement (Properties ctx, ResultSet rs, String trxName)
{
super(ctx, rs, trxName);
} // MAdvertisement
/** Click Count */
private MClickCount m_clickCount = null;
/** Counter Count */
private MCounterCount m_counterCount = null;
/** Sales Rep */
private int m_SalesRep_ID = 0;
/**************************************************************************
* Get ClickCount
* @return Click Count
*/
public MClickCount getMClickCount()
{
if (getW_ClickCount_ID() == 0)
return null;
if (m_clickCount == null)
m_clickCount = new MClickCount (getCtx(), getW_ClickCount_ID(), get_TrxName());
return m_clickCount;
} // MClickCount
/**
* Get Click Target URL (from ClickCount)
* @return URL
*/
public String getClickTargetURL()
{
getMClickCount();
if (m_clickCount == null)
return "-";
return m_clickCount.getTargetURL();
} // getClickTargetURL
/**
* Set Click Target URL (in ClickCount)
* @param TargetURL url
*/
public void setClickTargetURL(String TargetURL)
{
getMClickCount();
if (m_clickCount == null)
m_clickCount = new MClickCount(this);
if (m_clickCount != null)
{
m_clickCount.setTargetURL(TargetURL);
m_clickCount.saveEx(get_TrxName());
}
} // getClickTargetURL
/**
* Get Weekly Count
* @return weekly count
*/
public ValueNamePair[] getClickCountWeek ()
{
getMClickCount();
if (m_clickCount == null)
return new ValueNamePair[0];
return m_clickCount.getCountWeek();
} // getClickCountWeek
/**
* Get CounterCount
* @return Counter Count
*/
public MCounterCount getMCounterCount()
{
if (getW_CounterCount_ID() == 0)
return null;
if (m_counterCount == null)
m_counterCount = new MCounterCount (getCtx(), getW_CounterCount_ID(), get_TrxName());
return m_counterCount;
} // MCounterCount
/**
* Get Sales Rep ID.
* (AD_User_ID of oldest BP user)
* @return Sales Rep ID
*/
public int getSalesRep_ID()
{
if (m_SalesRep_ID == 0)
{
m_SalesRep_ID = getAD_User_ID();
if (m_SalesRep_ID == 0)
m_SalesRep_ID = DB.getSQLValue(null,
"SELECT AD_User_ID FROM AD_User "
+ "WHERE C_BPartner_ID=? AND IsActive='Y' ORDER BY AD_User_ID", getC_BPartner_ID());
}
return m_SalesRep_ID;
} // getSalesRep_ID
} // MAdvertisement

View File

@ -1,268 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.Adempiere;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
/**
* Actual Click
*
* @author Jorg Janke
* @version $Id: MClick.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
*/
public class MClick extends X_W_Click
{
/**
*
*/
private static final long serialVersionUID = 850591754099789308L;
/**
* Get Unprocessed Clicks
* @param ctx context
* @return array of unprocessed clicks
*/
public static MClick[] getUnprocessed(Properties ctx)
{
ArrayList<MClick> list = new ArrayList<MClick> ();
String sql = "SELECT * FROM W_Click WHERE AD_Client_ID=? AND Processed = 'N'";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement (sql, null);
pstmt.setInt (1, Env.getAD_Client_ID(ctx));
rs = pstmt.executeQuery ();
while (rs.next ())
{
list.add (new MClick (ctx, rs, null));
}
}
catch (Exception e)
{
s_log.log (Level.SEVERE, sql, e);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
//
MClick[] retValue = new MClick[list.size ()];
list.toArray (retValue);
return retValue;
} // getUnprocessed
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MClick.class);
/**************************************************************************
* Actual Click
* @param ctx context
* @param W_Click_ID ID
* @param trxName transaction
*/
public MClick (Properties ctx, int W_Click_ID, String trxName)
{
super (ctx, W_Click_ID, trxName);
if (W_Click_ID == 0)
setProcessed (false);
} // MClick
/**
* Actual Click
* @param ctx context
* @param TargetURL url
* @param trxName transaction
*/
public MClick (Properties ctx, String TargetURL, String trxName)
{
this (ctx, 0, trxName);
setTargetURL(TargetURL);
} // MClick
/**
* Load Constructor
* @param ctx context
* @param rs result set
* @param trxName transaction
*/
public MClick (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
} // MClick
/**
* Set Target URL. Reset Click Count
* @param TargetURL
*/
public void setTargetURL(String TargetURL)
{
super.setTargetURL(TargetURL);
super.setW_ClickCount_ID(0);
} // setTargetURL
/**
* Find Click Count.
*/
public void setW_ClickCount_ID ()
{
// clean up url
String url = getTargetURL();
if (url == null || url.length() == 0)
return;
String exactURL = url;
// remove everything before first / .
if (url.startsWith("http://"))
url = url.substring(7);
int dot = url.indexOf('.');
int slash = url.indexOf('/');
while (dot > slash && slash != -1)
{
url = url.substring(slash+1);
dot = url.indexOf('.');
slash = url.indexOf('/');
}
// remove everything after /
if (slash != -1)
url = url.substring(0, slash);
if (log.isLoggable(Level.FINE)) log.fine(exactURL + " -> " + url);
int W_ClickCount_ID = search (url, exactURL);
// try minumum
if (W_ClickCount_ID == 0)
{
int lastDot = url.lastIndexOf('.');
int firstDot = url.indexOf('.');
while (lastDot != firstDot)
{
url = url.substring(firstDot+1);
lastDot = url.lastIndexOf('.');
firstDot = url.indexOf('.');
}
if (log.isLoggable(Level.FINE)) log.fine(exactURL + " -> " + url);
W_ClickCount_ID = search (url, exactURL);
}
// Not found
if (W_ClickCount_ID == 0)
{
log.warning ("Not found: " + url
+ " (" + exactURL + ") Referrer=" + getReferrer());
return;
}
// OK
setProcessed(true);
super.setW_ClickCount_ID (W_ClickCount_ID);
} // setW_ClickCount_ID
/**
* Search for Click Count
* @param url url
* @param exactURL original url
* @return W_ClickCount_ID
*/
private int search (String url, String exactURL)
{
String sql = "SELECT W_ClickCount_ID, TargetURL FROM W_ClickCount WHERE TargetURL LIKE ?";
int W_ClickCount_ID = 0;
int exactW_ClickCount_ID = 0;
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement(sql, null);
StringBuilder msgstr = new StringBuilder("%").append(url).append("%");
pstmt.setString(1, msgstr.toString());
rs = pstmt.executeQuery();
while (rs.next())
{
W_ClickCount_ID = rs.getInt(1);
if (exactURL.equals(rs.getString(2)))
{
exactW_ClickCount_ID = W_ClickCount_ID;
break;
}
}
}
catch (SQLException ex)
{
log.log(Level.SEVERE, sql, ex);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
// Set Click Count
if (exactW_ClickCount_ID != 0)
W_ClickCount_ID = exactW_ClickCount_ID;
return W_ClickCount_ID;
} // search
/**
* Before Save
* @param newRecord new
* @return true
*/
protected boolean beforeSave (boolean newRecord)
{
if (getW_ClickCount_ID() == 0)
setW_ClickCount_ID();
return true;
} // beforeSave
/**************************************************************************
* Test
* @param args ignored
*/
public static void main (String[] args)
{
Adempiere.startup(true);
Env.setContext(Env.getCtx(), "#AD_Client_ID", 1000000);
MClick[] clicks = getUnprocessed(Env.getCtx());
int counter = 0;
for (int i = 0; i < clicks.length; i++)
{
MClick click = clicks[i];
if (click.getW_ClickCount_ID() == 0)
{
click.setW_ClickCount_ID();
if (click.getW_ClickCount_ID() != 0)
{
click.saveEx();
counter++;
}
}
}
System.out.println("#" + counter);
} // main
} // MClick

View File

@ -1,183 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.ValueNamePair;
/**
* Click Count (header)
*
* @author Jorg Janke
* @version $Id: MClickCount.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
*/
public class MClickCount extends X_W_ClickCount
{
/**
*
*/
private static final long serialVersionUID = -5233509415147834823L;
/**
* Standard Constructor
* @param ctx context
* @param W_ClickCount_ID id
* @param trxName transaction
*/
public MClickCount (Properties ctx, int W_ClickCount_ID, String trxName)
{
super (ctx, W_ClickCount_ID, trxName);
if (W_ClickCount_ID == 0)
{
// setName (null);
// setTargetURL (null);
}
} // MClickCount
/**
* Load Constructor
* @param ctx context
* @param rs result set
* @param trxName transaction
*/
public MClickCount (Properties ctx, ResultSet rs, String trxName)
{
super(ctx, rs, trxName);
} // MClickCount
/**
* Parent Constructor
* @param ad parent
*/
public MClickCount (MAdvertisement ad)
{
this (ad.getCtx(), 0, ad.get_TrxName());
setName(ad.getName());
setTargetURL("#");
setC_BPartner_ID(ad.getC_BPartner_ID());
} // MClickCount
private SimpleDateFormat m_dateFormat = DisplayType.getDateFormat(DisplayType.Date);
private DecimalFormat m_intFormat = DisplayType.getNumberFormat(DisplayType.Integer);
/**************************************************************************
* Get Clicks
* @return clicks
*/
public MClick[] getMClicks()
{
ArrayList<MClick> list = new ArrayList<MClick>();
/** @todo Clicks */
//
MClick[] retValue = new MClick[list.size()];
list.toArray(retValue);
return retValue;
} // getMClicks
/**
* Get Count for date format
* @param DateFormat valid TRUNC date format
* @return count
*/
protected ValueNamePair[] getCount (String DateFormat)
{
ArrayList<ValueNamePair> list = new ArrayList<ValueNamePair>();
StringBuilder sql = new StringBuilder("SELECT TRUNC(Created, '").append(DateFormat).append("'), Count(*) ")
.append("FROM W_Click ")
.append("WHERE W_ClickCount_ID=? ")
.append("GROUP BY TRUNC(Created, '").append(DateFormat).append("')");
//
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement(sql.toString(), null);
pstmt.setInt(1, getW_ClickCount_ID());
rs = pstmt.executeQuery();
while (rs.next())
{
String value = m_dateFormat.format(rs.getTimestamp(1));
String name = m_intFormat.format(rs.getInt(2));
ValueNamePair pp = new ValueNamePair (value, name);
list.add(pp);
}
}
catch (SQLException ex)
{
log.log(Level.SEVERE, sql.toString(), ex);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
//
ValueNamePair[] retValue = new ValueNamePair[list.size()];
list.toArray(retValue);
return retValue;
} // getCount
/**
* Get Monthly Count
* @return monthly count
*/
public ValueNamePair[] getCountQuarter ()
{
return getCount("Q");
} // getCountQuarter
/**
* Get Monthly Count
* @return monthly count
*/
public ValueNamePair[] getCountMonth ()
{
return getCount("MM");
} // getCountMonth
/**
* Get Weekly Count
* @return weekly count
*/
public ValueNamePair[] getCountWeek ()
{
return getCount("DY");
} // getCountWeek
/**
* Get Daily Count
* @return dailt count
*/
public ValueNamePair[] getCountDay ()
{
return getCount("J");
} // getCountDay
} // MClickCount

View File

@ -1,63 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/**
* Web Counter (header)
*
* @author Jorg Janke
* @version $Id: MCounterCount.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
*/
public class MCounterCount extends X_W_CounterCount
{
/**
*
*/
private static final long serialVersionUID = -5348749341548369844L;
/**
* Standard Constructor
* @param ctx context
* @param W_CounterCount_ID id
* @param trxName transaction
*/
public MCounterCount (Properties ctx, int W_CounterCount_ID, String trxName)
{
super (ctx, W_CounterCount_ID, trxName);
if (W_CounterCount_ID == 0)
{
setCounter (0);
// setName (null);
// setPageURL (null);
}
} // MCounterCount
/**
* Load Constructor
* @param ctx context
* @param rs result set
* @param trxName transaction
*/
public MCounterCount (Properties ctx, ResultSet rs, String trxName)
{
super(ctx, rs, trxName);
} // MCounterCount
} // MCounterCount

View File

@ -1,88 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/**
* Wab Store Mail Message Model
* @author Jorg Janke
* @version $Id: MMailMsg.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
*/
public class MMailMsg extends X_W_MailMsg
{
/**
*
*/
private static final long serialVersionUID = 6181691633960939054L;
/**************************************************************************
* Standard Constructor
* @param ctx context
* @param W_MailMsg_ID id
* @param trxName trx
*/
public MMailMsg (Properties ctx, int W_MailMsg_ID, String trxName)
{
super (ctx, W_MailMsg_ID, trxName);
if (W_MailMsg_ID == 0)
{
// setW_Store_ID (0);
// setMailMsgType (null);
// setName (null);
// setSubject (null);
// setMessage (null);
}
} // MMailMsg
/**
* Load Constructor
* @param ctx context
* @param rs result set
* @param trxName trx
*/
public MMailMsg (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
} // MMailMsg
/**
* Full Constructor
* @param parent store
* @param MailMsgType msg type
* @param Name name
* @param Subject subject
* @param Message message
* @param Message2 message
* @param Message3 message
*/
public MMailMsg (MStore parent, String MailMsgType,
String Name, String Subject, String Message, String Message2, String Message3)
{
this (parent.getCtx(), 0, parent.get_TrxName());
setClientOrg(parent);
setW_Store_ID(parent.getW_Store_ID());
setMailMsgType (MailMsgType);
setName (Name);
setSubject (Subject);
setMessage (Message);
setMessage2 (Message2);
setMessage3 (Message3);
} // MMailMsg
} // MMailMsg

View File

@ -1,614 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.CCache;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.EMail;
import org.compiere.util.Env;
import org.compiere.util.Msg;
/**
* Web Store
* @author Jorg Janke
* @version $Id: MStore.java,v 1.4 2006/07/30 00:51:05 jjanke Exp $
*/
public class MStore extends X_W_Store
{
/**
*
*/
private static final long serialVersionUID = -5836212836465405633L;
/**
* Get WStore from Cache
* @param ctx context
* @param W_Store_ID id
* @return WStore
*/
public static MStore get (Properties ctx, int W_Store_ID)
{
Integer key = Integer.valueOf(W_Store_ID);
MStore retValue = (MStore) s_cache.get (key);
if (retValue != null)
return retValue;
retValue = new MStore (ctx, W_Store_ID, null);
if (retValue.get_ID () != 0)
s_cache.put (key, retValue);
return retValue;
} // get
/**
* Get WStore from Cache
* @param ctx context
* @param contextPath web server context path
* @return WStore
*/
public static MStore get (Properties ctx, String contextPath)
{
MStore wstore = null;
Iterator<?> it = s_cache.values().iterator();
while (it.hasNext())
{
wstore = (MStore)it.next();
if (wstore.getWebContext().equals(contextPath))
return wstore;
}
// Search by context
PreparedStatement pstmt = null;
ResultSet rs = null;
String sql = "SELECT * FROM W_Store WHERE WebContext=?";
try
{
pstmt = DB.prepareStatement (sql, null);
pstmt.setString(1, contextPath);
rs = pstmt.executeQuery ();
if (rs.next ())
wstore = new MStore (ctx, rs, null);
}
catch (Exception e)
{
s_log.log (Level.SEVERE, sql, e);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
// Try client
if (wstore == null)
{
sql = "SELECT * FROM W_Store WHERE AD_Client_ID=? AND IsActive='Y' ORDER BY W_Store_ID";
try
{
pstmt = DB.prepareStatement (sql, null);
pstmt.setInt (1, Env.getAD_Client_ID(ctx));
rs = pstmt.executeQuery ();
if (rs.next ())
{
wstore = new MStore (ctx, rs, null);
s_log.warning("Context " + contextPath
+ " Not found - Found via AD_Client_ID=" + Env.getAD_Client_ID(ctx));
}
}
catch (Exception e)
{
s_log.log (Level.SEVERE, sql, e);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
}
// Nothing
if (wstore == null)
return null;
// Save
Integer key = Integer.valueOf(wstore.getW_Store_ID());
s_cache.put (key, wstore);
return wstore;
} // get
/**
* Get active Web Stores of Clieny
* @param client client
* @return array of web stores
*/
public static MStore[] getOfClient (MClient client)
{
ArrayList<MStore> list = new ArrayList<MStore>();
String sql = "SELECT * FROM W_Store WHERE AD_Client_ID=? AND IsActive='Y'";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement (sql, client.get_TrxName());
pstmt.setInt (1, client.getAD_Client_ID());
rs = pstmt.executeQuery ();
while (rs.next ())
list.add (new MStore (client.getCtx(), rs, client.get_TrxName()));
}
catch (Exception e)
{
s_log.log (Level.SEVERE, sql, e);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
//
MStore[] retValue = new MStore[list.size ()];
list.toArray (retValue);
return retValue;
} // getOfClient
/**
* Get Active Web Stores
* @return cached web stores
*/
public static MStore[] getActive()
{
s_log.fine("");
try
{
Collection<?> cc = s_cache.values();
Object[] oo = cc.toArray();
for (int i = 0; i < oo.length; i++)
if (s_log.isLoggable(Level.INFO)) s_log.info(i + ": " + oo[i]);
MStore[] retValue = new MStore[oo.length];
for (int i = 0; i < oo.length; i++)
retValue[i] = (MStore)oo[i];
return retValue;
}
catch (Exception e)
{
s_log.severe(e.toString());
}
return new MStore[]{};
} // getActive
/** Cache */
private static CCache<Integer,MStore> s_cache
= new CCache<Integer,MStore>(Table_Name, 2);
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MStore.class);
/**************************************************************************
* Standard Constructor
* @param ctx context
* @param W_Store_ID id
* @param trxName trx
*/
public MStore (Properties ctx, int W_Store_ID, String trxName)
{
super (ctx, W_Store_ID, trxName);
if (W_Store_ID == 0)
{
setIsDefault (false);
setIsMenuAssets (true); // Y
setIsMenuContact (true); // Y
setIsMenuInterests (true); // Y
setIsMenuInvoices (true); // Y
setIsMenuOrders (true); // Y
setIsMenuPayments (true); // Y
setIsMenuRegistrations (true); // Y
setIsMenuRequests (true); // Y
setIsMenuRfQs (true); // Y
setIsMenuShipments (true); // Y
// setC_PaymentTerm_ID (0);
// setM_PriceList_ID (0);
// setM_Warehouse_ID (0);
// setName (null);
// setSalesRep_ID (0);
// setURL (null);
// setWebContext (null);
}
} // MWStore
/**
* Load Constructor
* @param ctx context
* @param rs result set
* @param trxName trx
*/
public MStore (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
} // MWStore
/** The Messages */
private MMailMsg[] m_msgs = null;
/**
* Get Web Context
* @param full if true fully qualified
* @return web context
*/
public String getWebContext(boolean full)
{
if (!full)
return super.getURL();
String url = super.getURL();
if (url == null || url.length() == 0)
url = "http://localhost";
if (url.endsWith("/"))
url += url.substring(0, url.length()-1);
return url + getWebContext(); // starts with /
} // getWebContext
/**
* String Representation
* @return info
*/
public String toString ()
{
StringBuilder sb = new StringBuilder ("WStore[");
sb.append(getWebContext(true))
.append ("]");
return sb.toString ();
} // toString
/**
* Before Save
* @param newRecord new
* @return true if can be saved
*/
protected boolean beforeSave (boolean newRecord)
{
// Context to start with /
if (!getWebContext().startsWith("/"))
setWebContext("/" + getWebContext());
// Org to Warehouse
if (newRecord || is_ValueChanged("M_Warehouse_ID") || getAD_Org_ID() == 0)
{
MWarehouse wh = new MWarehouse (getCtx(), getM_Warehouse_ID(), get_TrxName());
setAD_Org_ID(wh.getAD_Org_ID());
}
String url = getURL();
if (url == null)
url = "";
boolean urlOK = url.startsWith("http://") || url.startsWith("https://");
if (!urlOK) // || url.indexOf("localhost") != -1)
{
log.saveError("FillMandatory", Msg.getElement(getCtx(), "URL")
+ " - e.g. http://www.idempiere.org");
return false;
}
return true;
} // beforeSave
/************
* Create EMail from Request User
* @param to recipient
* @param subject sunject
* @param message nessage
* @return EMail
*/
public EMail createEMail (String to,
String subject, String message)
{
if (to == null || to.length() == 0)
{
log.warning("No To");
return null;
}
//
MClient client = MClient.get(getCtx(), getAD_Client_ID());
String from = getWStoreEMail();
if (from == null || from.length() == 0)
from = client.getRequestEMail();
EMail email = new EMail (client,
from, to,
subject, message);
// Authorizetion
if (client.isSmtpAuthorization())
{
if (getWStoreEMail() != null && getWStoreUser() != null && getWStoreUserPW() != null)
email.createAuthenticator (getWStoreUser(), getWStoreUserPW());
else
email.createAuthenticator (client.getRequestUser(), client.getRequestUserPW());
}
// Bcc
email.addBcc(from);
//
return email;
} // createEMail
/**
* Send EMail from WebStore User
* @param to recipient email address
* @param subject subject
* @param message message - add header & footer
* @return true if sent
*/
public boolean sendEMail (String to,
String subject, String message)
{
if (message == null || message.length() == 0)
{
log.warning("No Message");
return false;
}
StringBuilder msgText = new StringBuilder();
if (getEMailHeader() != null)
msgText.append(getEMailHeader());
msgText.append(message);
if (getEMailFooter() != null)
msgText.append(getEMailFooter());
//
EMail email = createEMail(to, subject, msgText.toString());
if (email == null)
return false;
try
{
String msg = email.send();
if (EMail.SENT_OK.equals (msg))
{
if (log.isLoggable(Level.INFO)) log.info("Sent EMail " + subject + " to " + to);
return true;
}
else
{
log.warning("Could NOT Send Email: " + subject
+ " to " + to + ": " + msg
+ " (" + getName() + ")");
return false;
}
}
catch (Exception ex)
{
log.severe(getName() + " - " + ex.getLocalizedMessage());
return false;
}
} // sendEMail
/**
* Test WebStore EMail
* @return OK or error
*/
public String testEMail()
{
if (getWStoreEMail() == null || getWStoreEMail().length() == 0)
return "No Web Store EMail for " + getName();
//
EMail email = createEMail (getWStoreEMail(),
"iDempiere WebStore EMail Test",
"iDempiere WebStore EMail Test: " + toString());
if (email == null)
return "Could not create Web Store EMail: " + getName();
try
{
String msg = email.send();
if (EMail.SENT_OK.equals (msg))
{
if (log.isLoggable(Level.INFO)) log.info("Sent Test EMail to " + getWStoreEMail());
return "OK";
}
else
{
log.warning("Could NOT send Test Email to "
+ getWStoreEMail() + ": " + msg);
return msg;
}
}
catch (Exception ex)
{
log.severe(getName() + " - " + ex.getLocalizedMessage());
return ex.getLocalizedMessage();
}
} // testEMail
/**
* Get Messages
* @param reload reload data
* @return array of messages
*/
public MMailMsg[] getMailMsgs (boolean reload)
{
if (m_msgs != null && !reload)
return m_msgs;
ArrayList<MMailMsg> list = new ArrayList<MMailMsg>();
//
String sql = "SELECT * FROM W_MailMsg WHERE W_Store_ID=? ORDER BY MailMsgType";
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
pstmt = DB.prepareStatement (sql, get_TrxName());
pstmt.setInt (1, getW_Store_ID());
rs = pstmt.executeQuery ();
while (rs.next ())
list.add (new MMailMsg (getCtx(), rs, get_TrxName()));
}
catch (Exception e)
{
log.log (Level.SEVERE, sql, e);
}
finally
{
DB.close(rs, pstmt);
rs = null;
pstmt = null;
}
//
m_msgs = new MMailMsg[list.size ()];
list.toArray (m_msgs);
return m_msgs;
} // getMailMsgs
/**
* Get Mail Msg and if not found create it
* @param MailMsgType mail message type
* @return message
*/
public MMailMsg getMailMsg (String MailMsgType)
{
if (m_msgs == null)
getMailMsgs(false);
// existing msg
for (int i = 0; i < m_msgs.length; i++)
{
if (m_msgs[i].getMailMsgType().equals(MailMsgType))
return m_msgs[i];
}
// create missing
if (createMessages() == 0)
{
log.severe("Not created/found: " + MailMsgType);
return null;
}
getMailMsgs(true);
// try again
for (int i = 0; i < m_msgs.length; i++)
{
if (m_msgs[i].getMailMsgType().equals(MailMsgType))
return m_msgs[i];
}
// nothing found
log.severe("Not found: " + MailMsgType);
return null;
} // getMailMsg
/**************************************************************************
* Create (missing) Messages
* @return number of messages created
*/
public int createMessages()
{
String[][] initMsgs = new String[][]
{
new String[]{MMailMsg.MAILMSGTYPE_UserVerification,
"EMail Verification",
"EMail Verification ",
"Dear ",
"\nYou requested the Verification Code: ",
"\nPlease enter the verification code to get access."},
new String[]{MMailMsg.MAILMSGTYPE_UserPassword,
"Password Request",
"Password Request ",
"Dear ",
"\nWe received a 'Send Password' request from: ",
"\nYour password is: "},
new String[]{MMailMsg.MAILMSGTYPE_Subscribe,
"Subscription New",
"New Subscription ",
"Dear ",
"\nYou requested to be added to the list: ",
"\nThanks for your interest."},
new String[]{MMailMsg.MAILMSGTYPE_UnSubscribe,
"Subscription Removed",
"Remove Subscription ",
"Dear ",
"\nYou requested to be removed from the list: ",
"\nSorry to see you go. This is effictive immediately."},
new String[]{MMailMsg.MAILMSGTYPE_OrderAcknowledgement,
"Order Acknowledgement",
"iDempiere Web - Order ",
"Dear ",
"\nThank you for your purchase: ",
"\nYou can view your Orders, Invoices, Payments in the Web Store."
+ "\nFrom there, you also download your Assets (Documentation, etc.)"},
new String[]{MMailMsg.MAILMSGTYPE_PaymentAcknowledgement,
"Payment Success",
"iDempiere Web - Payment ",
"Dear ",
"\nThank you for your payment of ",
"\nYou can view your Orders, Invoices, Payments in the Web Store."
+ "\nFrom there you also download your Assets (Documentation, etc.)"},
new String[]{MMailMsg.MAILMSGTYPE_PaymentError,
"Payment Error",
"iDempiere Web - Declined Payment ",
"Dear ",
"\nUnfortunately your payment was declined: ",
"\nPlease check and try again. You can pay later by going to 'My Orders' or 'My Invoices' - or by directly creating a payment in 'My Payments'"},
new String[]{MMailMsg.MAILMSGTYPE_Request,
"Request",
"Request ",
"Dear ",
"\nThank you for your request: " + MRequest.SEPARATOR,
MRequest.SEPARATOR + "\nPlease check back for updates."},
new String[]{MMailMsg.MAILMSGTYPE_UserAccount,
"Welcome Message",
"Welcome",
"Welcome to our Web Store",
"This is the Validation Code to access information:",
""},
};
if (m_msgs == null)
getMailMsgs(false);
if (m_msgs.length == initMsgs.length) // may create a problem if user defined own ones - unlikely
return 0; // nothing to do
int counter = 0;
for (int i = 0; i < initMsgs.length; i++)
{
boolean found = false;
for (int m = 0; m < m_msgs.length; m++)
{
if (initMsgs[i][0].equals(m_msgs[m].getMailMsgType()))
{
found = true;
break;
}
} // for all existing msgs
if (found)
continue;
MMailMsg msg = new MMailMsg(this, initMsgs[i][0], initMsgs[i][1],
initMsgs[i][2], initMsgs[i][3], initMsgs[i][4], initMsgs[i][5]);
if (msg.save())
counter++;
else
log.severe("Not created MailMsgType=" + initMsgs[i][0]);
} // for all initMsgs
if (log.isLoggable(Level.INFO)) log.info("#" + counter);
m_msgs = null; // reset
return counter;
} // createMessages
} // MWStore

View File

@ -81,29 +81,6 @@ public class MUserMail extends X_AD_UserMail
}
} // MUserMail
/**
* Parent Constructor
* @param parent Mail message
* @param AD_User_ID recipient user
* @param mail email
*/
public MUserMail (MMailMsg parent, int AD_User_ID, EMail mail)
{
this (parent.getCtx(), 0, parent.get_TrxName());
setClientOrg(parent);
setAD_User_ID(AD_User_ID);
setW_MailMsg_ID(parent.getW_MailMsg_ID());
setSenderAndRecipient(mail);
//
if (mail.isSentOK())
setMessageID(mail.getMessageID());
else
{
setMessageID(mail.getSentMsg());
setIsDelivered(ISDELIVERED_No);
}
} // MUserMail
/**
* New User Mail (no trx)
* @param po persistent object

View File

@ -317,11 +317,6 @@ public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent
return (String)get_Value(COLUMNNAME_Subject);
}
public org.compiere.model.I_W_MailMsg getW_MailMsg() throws RuntimeException
{
return (org.compiere.model.I_W_MailMsg)MTable.get(getCtx(), org.compiere.model.I_W_MailMsg.Table_Name)
.getPO(getW_MailMsg_ID(), get_TrxName()); }
/** Set Mail Message.
@param W_MailMsg_ID
Web Store Mail Message Template

View File

@ -1,518 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_Advertisement
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_Advertisement (Properties ctx, int W_Advertisement_ID, String trxName)
{
super (ctx, W_Advertisement_ID, trxName);
/** if (W_Advertisement_ID == 0)
{
setAD_User_ID (0);
// -1
setC_BPartner_ID (0);
setIsSelfService (true);
// Y
setName (null);
setPublishStatus (null);
// U
setW_Advertisement_ID (0);
} */
}
/** Load Constructor */
public X_W_Advertisement (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 3 - Client - Org
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_Advertisement[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set Advertisement Text.
@param AdText
Text of the Advertisement
*/
public void setAdText (String AdText)
{
set_Value (COLUMNNAME_AdText, AdText);
}
/** Get Advertisement Text.
@return Text of the Advertisement
*/
public String getAdText ()
{
return (String)get_Value(COLUMNNAME_AdText);
}
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
{
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
.getPO(getAD_User_ID(), get_TrxName()); }
/** Set User/Contact.
@param AD_User_ID
User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
{
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
.getPO(getC_BPartner_ID(), get_TrxName()); }
/** Set Business Partner .
@param C_BPartner_ID
Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID < 1)
set_Value (COLUMNNAME_C_BPartner_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
}
/** Get Business Partner .
@return Identifies a Business Partner
*/
public int getC_BPartner_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
@return Optional short description of the record
*/
public String getDescription ()
{
return (String)get_Value(COLUMNNAME_Description);
}
/** Set Comment/Help.
@param Help
Comment or Hint
*/
public void setHelp (String Help)
{
set_Value (COLUMNNAME_Help, Help);
}
/** Get Comment/Help.
@return Comment or Hint
*/
public String getHelp ()
{
return (String)get_Value(COLUMNNAME_Help);
}
/** Set Image URL.
@param ImageURL
URL of image
*/
public void setImageURL (String ImageURL)
{
set_Value (COLUMNNAME_ImageURL, ImageURL);
}
/** Get Image URL.
@return URL of image
*/
public String getImageURL ()
{
return (String)get_Value(COLUMNNAME_ImageURL);
}
/** Set Self-Service.
@param IsSelfService
This is a Self-Service entry or this entry can be changed via Self-Service
*/
public void setIsSelfService (boolean IsSelfService)
{
set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService));
}
/** Get Self-Service.
@return This is a Self-Service entry or this entry can be changed via Self-Service
*/
public boolean isSelfService ()
{
Object oo = get_Value(COLUMNNAME_IsSelfService);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity
*/
public String getName ()
{
return (String)get_Value(COLUMNNAME_Name);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Process Now.
@param Processing Process Now */
public void setProcessing (boolean Processing)
{
set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
}
/** Get Process Now.
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** PublishStatus AD_Reference_ID=310 */
public static final int PUBLISHSTATUS_AD_Reference_ID=310;
/** Released = R */
public static final String PUBLISHSTATUS_Released = "R";
/** Test = T */
public static final String PUBLISHSTATUS_Test = "T";
/** Under Revision = U */
public static final String PUBLISHSTATUS_UnderRevision = "U";
/** Void = V */
public static final String PUBLISHSTATUS_Void = "V";
/** Set Publication Status.
@param PublishStatus
Status of Publication
*/
public void setPublishStatus (String PublishStatus)
{
set_Value (COLUMNNAME_PublishStatus, PublishStatus);
}
/** Get Publication Status.
@return Status of Publication
*/
public String getPublishStatus ()
{
return (String)get_Value(COLUMNNAME_PublishStatus);
}
/** Set Valid from.
@param ValidFrom
Valid from including this date (first day)
*/
public void setValidFrom (Timestamp ValidFrom)
{
set_Value (COLUMNNAME_ValidFrom, ValidFrom);
}
/** Get Valid from.
@return Valid from including this date (first day)
*/
public Timestamp getValidFrom ()
{
return (Timestamp)get_Value(COLUMNNAME_ValidFrom);
}
/** Set Valid to.
@param ValidTo
Valid to including this date (last day)
*/
public void setValidTo (Timestamp ValidTo)
{
set_Value (COLUMNNAME_ValidTo, ValidTo);
}
/** Get Valid to.
@return Valid to including this date (last day)
*/
public Timestamp getValidTo ()
{
return (Timestamp)get_Value(COLUMNNAME_ValidTo);
}
/** Set Version.
@param Version
Version of the table definition
*/
public void setVersion (int Version)
{
set_Value (COLUMNNAME_Version, Integer.valueOf(Version));
}
/** Get Version.
@return Version of the table definition
*/
public int getVersion ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Version);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Advertisement.
@param W_Advertisement_ID
Web Advertisement
*/
public void setW_Advertisement_ID (int W_Advertisement_ID)
{
if (W_Advertisement_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_Advertisement_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_Advertisement_ID, Integer.valueOf(W_Advertisement_ID));
}
/** Get Advertisement.
@return Web Advertisement
*/
public int getW_Advertisement_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Advertisement_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_Advertisement_UU.
@param W_Advertisement_UU W_Advertisement_UU */
public void setW_Advertisement_UU (String W_Advertisement_UU)
{
set_Value (COLUMNNAME_W_Advertisement_UU, W_Advertisement_UU);
}
/** Get W_Advertisement_UU.
@return W_Advertisement_UU */
public String getW_Advertisement_UU ()
{
return (String)get_Value(COLUMNNAME_W_Advertisement_UU);
}
public org.compiere.model.I_W_ClickCount getW_ClickCount() throws RuntimeException
{
return (org.compiere.model.I_W_ClickCount)MTable.get(getCtx(), org.compiere.model.I_W_ClickCount.Table_Name)
.getPO(getW_ClickCount_ID(), get_TrxName()); }
/** Set Click Count.
@param W_ClickCount_ID
Web Click Management
*/
public void setW_ClickCount_ID (int W_ClickCount_ID)
{
if (W_ClickCount_ID < 1)
set_Value (COLUMNNAME_W_ClickCount_ID, null);
else
set_Value (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID));
}
/** Get Click Count.
@return Web Click Management
*/
public int getW_ClickCount_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_ClickCount_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_W_CounterCount getW_CounterCount() throws RuntimeException
{
return (org.compiere.model.I_W_CounterCount)MTable.get(getCtx(), org.compiere.model.I_W_CounterCount.Table_Name)
.getPO(getW_CounterCount_ID(), get_TrxName()); }
/** Set Counter Count.
@param W_CounterCount_ID
Web Counter Count Management
*/
public void setW_CounterCount_ID (int W_CounterCount_ID)
{
if (W_CounterCount_ID < 1)
set_Value (COLUMNNAME_W_CounterCount_ID, null);
else
set_Value (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID));
}
/** Get Counter Count.
@return Web Counter Count Management
*/
public int getW_CounterCount_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_CounterCount_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Web Parameter 1.
@param WebParam1
Web Site Parameter 1 (default: header image)
*/
public void setWebParam1 (String WebParam1)
{
set_Value (COLUMNNAME_WebParam1, WebParam1);
}
/** Get Web Parameter 1.
@return Web Site Parameter 1 (default: header image)
*/
public String getWebParam1 ()
{
return (String)get_Value(COLUMNNAME_WebParam1);
}
/** Set Web Parameter 2.
@param WebParam2
Web Site Parameter 2 (default index page)
*/
public void setWebParam2 (String WebParam2)
{
set_Value (COLUMNNAME_WebParam2, WebParam2);
}
/** Get Web Parameter 2.
@return Web Site Parameter 2 (default index page)
*/
public String getWebParam2 ()
{
return (String)get_Value(COLUMNNAME_WebParam2);
}
/** Set Web Parameter 3.
@param WebParam3
Web Site Parameter 3 (default left - menu)
*/
public void setWebParam3 (String WebParam3)
{
set_Value (COLUMNNAME_WebParam3, WebParam3);
}
/** Get Web Parameter 3.
@return Web Site Parameter 3 (default left - menu)
*/
public String getWebParam3 ()
{
return (String)get_Value(COLUMNNAME_WebParam3);
}
/** Set Web Parameter 4.
@param WebParam4
Web Site Parameter 4 (default footer left)
*/
public void setWebParam4 (String WebParam4)
{
set_Value (COLUMNNAME_WebParam4, WebParam4);
}
/** Get Web Parameter 4.
@return Web Site Parameter 4 (default footer left)
*/
public String getWebParam4 ()
{
return (String)get_Value(COLUMNNAME_WebParam4);
}
}

View File

@ -1,240 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_Basket
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_Basket extends PO implements I_W_Basket, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_Basket (Properties ctx, int W_Basket_ID, String trxName)
{
super (ctx, W_Basket_ID, trxName);
/** if (W_Basket_ID == 0)
{
setAD_User_ID (0);
setSession_ID (0);
setW_Basket_ID (0);
} */
}
/** Load Constructor */
public X_W_Basket (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 4 - System
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_Basket[")
.append(get_ID()).append("]");
return sb.toString();
}
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
{
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
.getPO(getAD_User_ID(), get_TrxName()); }
/** Set User/Contact.
@param AD_User_ID
User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
{
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
.getPO(getC_BPartner_ID(), get_TrxName()); }
/** Set Business Partner .
@param C_BPartner_ID
Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID < 1)
set_Value (COLUMNNAME_C_BPartner_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
}
/** Get Business Partner .
@return Identifies a Business Partner
*/
public int getC_BPartner_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set EMail Address.
@param EMail
Electronic Mail Address
*/
public void setEMail (String EMail)
{
set_Value (COLUMNNAME_EMail, EMail);
}
/** Get EMail Address.
@return Electronic Mail Address
*/
public String getEMail ()
{
return (String)get_Value(COLUMNNAME_EMail);
}
public org.compiere.model.I_M_PriceList getM_PriceList() throws RuntimeException
{
return (org.compiere.model.I_M_PriceList)MTable.get(getCtx(), org.compiere.model.I_M_PriceList.Table_Name)
.getPO(getM_PriceList_ID(), get_TrxName()); }
/** Set Price List.
@param M_PriceList_ID
Unique identifier of a Price List
*/
public void setM_PriceList_ID (int M_PriceList_ID)
{
if (M_PriceList_ID < 1)
set_Value (COLUMNNAME_M_PriceList_ID, null);
else
set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID));
}
/** Get Price List.
@return Unique identifier of a Price List
*/
public int getM_PriceList_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Session ID.
@param Session_ID Session ID */
public void setSession_ID (int Session_ID)
{
if (Session_ID < 1)
set_Value (COLUMNNAME_Session_ID, null);
else
set_Value (COLUMNNAME_Session_ID, Integer.valueOf(Session_ID));
}
/** Get Session ID.
@return Session ID */
public int getSession_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Session_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getSession_ID()));
}
/** Set Basket.
@param W_Basket_ID
Web Basket
*/
public void setW_Basket_ID (int W_Basket_ID)
{
if (W_Basket_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_Basket_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID));
}
/** Get Basket.
@return Web Basket
*/
public int getW_Basket_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Basket_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_Basket_UU.
@param W_Basket_UU W_Basket_UU */
public void setW_Basket_UU (String W_Basket_UU)
{
set_Value (COLUMNNAME_W_Basket_UU, W_Basket_UU);
}
/** Get W_Basket_UU.
@return W_Basket_UU */
public String getW_Basket_UU ()
{
return (String)get_Value(COLUMNNAME_W_Basket_UU);
}
}

View File

@ -1,272 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_BasketLine
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_BasketLine (Properties ctx, int W_BasketLine_ID, String trxName)
{
super (ctx, W_BasketLine_ID, trxName);
/** if (W_BasketLine_ID == 0)
{
setDescription (null);
setLine (0);
setPrice (Env.ZERO);
setProduct (null);
setQty (Env.ZERO);
setW_Basket_ID (0);
setW_BasketLine_ID (0);
} */
}
/** Load Constructor */
public X_W_BasketLine (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 4 - System
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_BasketLine[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
@return Optional short description of the record
*/
public String getDescription ()
{
return (String)get_Value(COLUMNNAME_Description);
}
/** Set Line No.
@param Line
Unique line for this document
*/
public void setLine (int Line)
{
set_Value (COLUMNNAME_Line, Integer.valueOf(Line));
}
/** Get Line No.
@return Unique line for this document
*/
public int getLine ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Line);
if (ii == null)
return 0;
return ii.intValue();
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getLine()));
}
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException
{
return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name)
.getPO(getM_Product_ID(), get_TrxName()); }
/** Set Product.
@param M_Product_ID
Product, Service, Item
*/
public void setM_Product_ID (int M_Product_ID)
{
if (M_Product_ID < 1)
set_Value (COLUMNNAME_M_Product_ID, null);
else
set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID));
}
/** Get Product.
@return Product, Service, Item
*/
public int getM_Product_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Price.
@param Price
Price
*/
public void setPrice (BigDecimal Price)
{
set_Value (COLUMNNAME_Price, Price);
}
/** Get Price.
@return Price
*/
public BigDecimal getPrice ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Price);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Product.
@param Product Product */
public void setProduct (String Product)
{
set_Value (COLUMNNAME_Product, Product);
}
/** Get Product.
@return Product */
public String getProduct ()
{
return (String)get_Value(COLUMNNAME_Product);
}
/** Set Quantity.
@param Qty
Quantity
*/
public void setQty (BigDecimal Qty)
{
set_Value (COLUMNNAME_Qty, Qty);
}
/** Get Quantity.
@return Quantity
*/
public BigDecimal getQty ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty);
if (bd == null)
return Env.ZERO;
return bd;
}
public org.compiere.model.I_W_Basket getW_Basket() throws RuntimeException
{
return (org.compiere.model.I_W_Basket)MTable.get(getCtx(), org.compiere.model.I_W_Basket.Table_Name)
.getPO(getW_Basket_ID(), get_TrxName()); }
/** Set Basket.
@param W_Basket_ID
Web Basket
*/
public void setW_Basket_ID (int W_Basket_ID)
{
if (W_Basket_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_Basket_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID));
}
/** Get Basket.
@return Web Basket
*/
public int getW_Basket_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Basket_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Basket Line.
@param W_BasketLine_ID
Web Basket Line
*/
public void setW_BasketLine_ID (int W_BasketLine_ID)
{
if (W_BasketLine_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, Integer.valueOf(W_BasketLine_ID));
}
/** Get Basket Line.
@return Web Basket Line
*/
public int getW_BasketLine_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_BasketLine_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_BasketLine_UU.
@param W_BasketLine_UU W_BasketLine_UU */
public void setW_BasketLine_UU (String W_BasketLine_UU)
{
set_Value (COLUMNNAME_W_BasketLine_UU, W_BasketLine_UU);
}
/** Get W_BasketLine_UU.
@return W_BasketLine_UU */
public String getW_BasketLine_UU ()
{
return (String)get_Value(COLUMNNAME_W_BasketLine_UU);
}
}

View File

@ -1,312 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_Click
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_Click extends PO implements I_W_Click, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_Click (Properties ctx, int W_Click_ID, String trxName)
{
super (ctx, W_Click_ID, trxName);
/** if (W_Click_ID == 0)
{
setProcessed (false);
setW_Click_ID (0);
} */
}
/** Load Constructor */
public X_W_Click (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 3 - Client - Org
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_Click[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set Accept Language.
@param AcceptLanguage
Language accepted based on browser information
*/
public void setAcceptLanguage (String AcceptLanguage)
{
set_Value (COLUMNNAME_AcceptLanguage, AcceptLanguage);
}
/** Get Accept Language.
@return Language accepted based on browser information
*/
public String getAcceptLanguage ()
{
return (String)get_Value(COLUMNNAME_AcceptLanguage);
}
/** Set User/Contact.
@param AD_User_ID
User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set EMail Address.
@param EMail
Electronic Mail Address
*/
public void setEMail (String EMail)
{
set_Value (COLUMNNAME_EMail, EMail);
}
/** Get EMail Address.
@return Electronic Mail Address
*/
public String getEMail ()
{
return (String)get_Value(COLUMNNAME_EMail);
}
/** Set Processed.
@param Processed
The document has been processed
*/
public void setProcessed (boolean Processed)
{
set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
}
/** Get Processed.
@return The document has been processed
*/
public boolean isProcessed ()
{
Object oo = get_Value(COLUMNNAME_Processed);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Referrer.
@param Referrer
Referring web address
*/
public void setReferrer (String Referrer)
{
set_Value (COLUMNNAME_Referrer, Referrer);
}
/** Get Referrer.
@return Referring web address
*/
public String getReferrer ()
{
return (String)get_Value(COLUMNNAME_Referrer);
}
/** Set Remote Addr.
@param Remote_Addr
Remote Address
*/
public void setRemote_Addr (String Remote_Addr)
{
set_Value (COLUMNNAME_Remote_Addr, Remote_Addr);
}
/** Get Remote Addr.
@return Remote Address
*/
public String getRemote_Addr ()
{
return (String)get_Value(COLUMNNAME_Remote_Addr);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getRemote_Addr());
}
/** Set Remote Host.
@param Remote_Host
Remote host Info
*/
public void setRemote_Host (String Remote_Host)
{
set_Value (COLUMNNAME_Remote_Host, Remote_Host);
}
/** Get Remote Host.
@return Remote host Info
*/
public String getRemote_Host ()
{
return (String)get_Value(COLUMNNAME_Remote_Host);
}
/** Set Target URL.
@param TargetURL
URL for the Target
*/
public void setTargetURL (String TargetURL)
{
set_Value (COLUMNNAME_TargetURL, TargetURL);
}
/** Get Target URL.
@return URL for the Target
*/
public String getTargetURL ()
{
return (String)get_Value(COLUMNNAME_TargetURL);
}
/** Set User Agent.
@param UserAgent
Browser Used
*/
public void setUserAgent (String UserAgent)
{
set_Value (COLUMNNAME_UserAgent, UserAgent);
}
/** Get User Agent.
@return Browser Used
*/
public String getUserAgent ()
{
return (String)get_Value(COLUMNNAME_UserAgent);
}
public org.compiere.model.I_W_ClickCount getW_ClickCount() throws RuntimeException
{
return (org.compiere.model.I_W_ClickCount)MTable.get(getCtx(), org.compiere.model.I_W_ClickCount.Table_Name)
.getPO(getW_ClickCount_ID(), get_TrxName()); }
/** Set Click Count.
@param W_ClickCount_ID
Web Click Management
*/
public void setW_ClickCount_ID (int W_ClickCount_ID)
{
if (W_ClickCount_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID));
}
/** Get Click Count.
@return Web Click Management
*/
public int getW_ClickCount_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_ClickCount_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Web Click.
@param W_Click_ID
Individual Web Click
*/
public void setW_Click_ID (int W_Click_ID)
{
if (W_Click_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_Click_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_Click_ID, Integer.valueOf(W_Click_ID));
}
/** Get Web Click.
@return Individual Web Click
*/
public int getW_Click_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Click_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_Click_UU.
@param W_Click_UU W_Click_UU */
public void setW_Click_UU (String W_Click_UU)
{
set_Value (COLUMNNAME_W_Click_UU, W_Click_UU);
}
/** Get W_Click_UU.
@return W_Click_UU */
public String getW_Click_UU ()
{
return (String)get_Value(COLUMNNAME_W_Click_UU);
}
}

View File

@ -1,217 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_ClickCount
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_ClickCount extends PO implements I_W_ClickCount, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_ClickCount (Properties ctx, int W_ClickCount_ID, String trxName)
{
super (ctx, W_ClickCount_ID, trxName);
/** if (W_ClickCount_ID == 0)
{
setName (null);
setTargetURL (null);
setW_ClickCount_ID (0);
} */
}
/** Load Constructor */
public X_W_ClickCount (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 3 - Client - Org
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_ClickCount[")
.append(get_ID()).append("]");
return sb.toString();
}
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
{
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
.getPO(getC_BPartner_ID(), get_TrxName()); }
/** Set Business Partner .
@param C_BPartner_ID
Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID < 1)
set_Value (COLUMNNAME_C_BPartner_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
}
/** Get Business Partner .
@return Identifies a Business Partner
*/
public int getC_BPartner_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Counter.
@param Counter
Count Value
*/
public void setCounter (int Counter)
{
throw new IllegalArgumentException ("Counter is virtual column"); }
/** Get Counter.
@return Count Value
*/
public int getCounter ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Counter);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
@return Optional short description of the record
*/
public String getDescription ()
{
return (String)get_Value(COLUMNNAME_Description);
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity
*/
public String getName ()
{
return (String)get_Value(COLUMNNAME_Name);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Target URL.
@param TargetURL
URL for the Target
*/
public void setTargetURL (String TargetURL)
{
set_Value (COLUMNNAME_TargetURL, TargetURL);
}
/** Get Target URL.
@return URL for the Target
*/
public String getTargetURL ()
{
return (String)get_Value(COLUMNNAME_TargetURL);
}
/** Set Click Count.
@param W_ClickCount_ID
Web Click Management
*/
public void setW_ClickCount_ID (int W_ClickCount_ID)
{
if (W_ClickCount_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID));
}
/** Get Click Count.
@return Web Click Management
*/
public int getW_ClickCount_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_ClickCount_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_ClickCount_UU.
@param W_ClickCount_UU W_ClickCount_UU */
public void setW_ClickCount_UU (String W_ClickCount_UU)
{
set_Value (COLUMNNAME_W_ClickCount_UU, W_ClickCount_UU);
}
/** Get W_ClickCount_UU.
@return W_ClickCount_UU */
public String getW_ClickCount_UU ()
{
return (String)get_Value(COLUMNNAME_W_ClickCount_UU);
}
}

View File

@ -1,312 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_Counter
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_Counter extends PO implements I_W_Counter, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_Counter (Properties ctx, int W_Counter_ID, String trxName)
{
super (ctx, W_Counter_ID, trxName);
/** if (W_Counter_ID == 0)
{
setPageURL (null);
setProcessed (false);
setRemote_Addr (null);
setRemote_Host (null);
setW_Counter_ID (0);
} */
}
/** Load Constructor */
public X_W_Counter (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 3 - Client - Org
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_Counter[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set Accept Language.
@param AcceptLanguage
Language accepted based on browser information
*/
public void setAcceptLanguage (String AcceptLanguage)
{
set_Value (COLUMNNAME_AcceptLanguage, AcceptLanguage);
}
/** Get Accept Language.
@return Language accepted based on browser information
*/
public String getAcceptLanguage ()
{
return (String)get_Value(COLUMNNAME_AcceptLanguage);
}
/** Set User/Contact.
@param AD_User_ID
User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set EMail Address.
@param EMail
Electronic Mail Address
*/
public void setEMail (String EMail)
{
set_Value (COLUMNNAME_EMail, EMail);
}
/** Get EMail Address.
@return Electronic Mail Address
*/
public String getEMail ()
{
return (String)get_Value(COLUMNNAME_EMail);
}
/** Set Page URL.
@param PageURL Page URL */
public void setPageURL (String PageURL)
{
set_Value (COLUMNNAME_PageURL, PageURL);
}
/** Get Page URL.
@return Page URL */
public String getPageURL ()
{
return (String)get_Value(COLUMNNAME_PageURL);
}
/** Set Processed.
@param Processed
The document has been processed
*/
public void setProcessed (boolean Processed)
{
set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
}
/** Get Processed.
@return The document has been processed
*/
public boolean isProcessed ()
{
Object oo = get_Value(COLUMNNAME_Processed);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Referrer.
@param Referrer
Referring web address
*/
public void setReferrer (String Referrer)
{
set_Value (COLUMNNAME_Referrer, Referrer);
}
/** Get Referrer.
@return Referring web address
*/
public String getReferrer ()
{
return (String)get_Value(COLUMNNAME_Referrer);
}
/** Set Remote Addr.
@param Remote_Addr
Remote Address
*/
public void setRemote_Addr (String Remote_Addr)
{
set_Value (COLUMNNAME_Remote_Addr, Remote_Addr);
}
/** Get Remote Addr.
@return Remote Address
*/
public String getRemote_Addr ()
{
return (String)get_Value(COLUMNNAME_Remote_Addr);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getRemote_Addr());
}
/** Set Remote Host.
@param Remote_Host
Remote host Info
*/
public void setRemote_Host (String Remote_Host)
{
set_Value (COLUMNNAME_Remote_Host, Remote_Host);
}
/** Get Remote Host.
@return Remote host Info
*/
public String getRemote_Host ()
{
return (String)get_Value(COLUMNNAME_Remote_Host);
}
/** Set User Agent.
@param UserAgent
Browser Used
*/
public void setUserAgent (String UserAgent)
{
set_Value (COLUMNNAME_UserAgent, UserAgent);
}
/** Get User Agent.
@return Browser Used
*/
public String getUserAgent ()
{
return (String)get_Value(COLUMNNAME_UserAgent);
}
public org.compiere.model.I_W_CounterCount getW_CounterCount() throws RuntimeException
{
return (org.compiere.model.I_W_CounterCount)MTable.get(getCtx(), org.compiere.model.I_W_CounterCount.Table_Name)
.getPO(getW_CounterCount_ID(), get_TrxName()); }
/** Set Counter Count.
@param W_CounterCount_ID
Web Counter Count Management
*/
public void setW_CounterCount_ID (int W_CounterCount_ID)
{
if (W_CounterCount_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID));
}
/** Get Counter Count.
@return Web Counter Count Management
*/
public int getW_CounterCount_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_CounterCount_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Web Counter.
@param W_Counter_ID
Individual Count hit
*/
public void setW_Counter_ID (int W_Counter_ID)
{
if (W_Counter_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_Counter_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_Counter_ID, Integer.valueOf(W_Counter_ID));
}
/** Get Web Counter.
@return Individual Count hit
*/
public int getW_Counter_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Counter_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_Counter_UU.
@param W_Counter_UU W_Counter_UU */
public void setW_Counter_UU (String W_Counter_UU)
{
set_Value (COLUMNNAME_W_Counter_UU, W_Counter_UU);
}
/** Get W_Counter_UU.
@return W_Counter_UU */
public String getW_Counter_UU ()
{
return (String)get_Value(COLUMNNAME_W_Counter_UU);
}
}

View File

@ -1,214 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_CounterCount
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_CounterCount extends PO implements I_W_CounterCount, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_CounterCount (Properties ctx, int W_CounterCount_ID, String trxName)
{
super (ctx, W_CounterCount_ID, trxName);
/** if (W_CounterCount_ID == 0)
{
setName (null);
setPageURL (null);
setW_CounterCount_ID (0);
} */
}
/** Load Constructor */
public X_W_CounterCount (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 3 - Client - Org
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_CounterCount[")
.append(get_ID()).append("]");
return sb.toString();
}
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
{
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
.getPO(getC_BPartner_ID(), get_TrxName()); }
/** Set Business Partner .
@param C_BPartner_ID
Identifies a Business Partner
*/
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID < 1)
set_Value (COLUMNNAME_C_BPartner_ID, null);
else
set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
}
/** Get Business Partner .
@return Identifies a Business Partner
*/
public int getC_BPartner_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Counter.
@param Counter
Count Value
*/
public void setCounter (int Counter)
{
throw new IllegalArgumentException ("Counter is virtual column"); }
/** Get Counter.
@return Count Value
*/
public int getCounter ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Counter);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
@return Optional short description of the record
*/
public String getDescription ()
{
return (String)get_Value(COLUMNNAME_Description);
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity
*/
public String getName ()
{
return (String)get_Value(COLUMNNAME_Name);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Page URL.
@param PageURL Page URL */
public void setPageURL (String PageURL)
{
set_Value (COLUMNNAME_PageURL, PageURL);
}
/** Get Page URL.
@return Page URL */
public String getPageURL ()
{
return (String)get_Value(COLUMNNAME_PageURL);
}
/** Set Counter Count.
@param W_CounterCount_ID
Web Counter Count Management
*/
public void setW_CounterCount_ID (int W_CounterCount_ID)
{
if (W_CounterCount_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID));
}
/** Get Counter Count.
@return Web Counter Count Management
*/
public int getW_CounterCount_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_CounterCount_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_CounterCount_UU.
@param W_CounterCount_UU W_CounterCount_UU */
public void setW_CounterCount_UU (String W_CounterCount_UU)
{
set_Value (COLUMNNAME_W_CounterCount_UU, W_CounterCount_UU);
}
/** Get W_CounterCount_UU.
@return W_CounterCount_UU */
public String getW_CounterCount_UU ()
{
return (String)get_Value(COLUMNNAME_W_CounterCount_UU);
}
}

View File

@ -1,290 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_MailMsg
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_MailMsg (Properties ctx, int W_MailMsg_ID, String trxName)
{
super (ctx, W_MailMsg_ID, trxName);
/** if (W_MailMsg_ID == 0)
{
setMailMsgType (null);
setMessage (null);
setName (null);
setSubject (null);
setW_MailMsg_ID (0);
setW_Store_ID (0);
} */
}
/** Load Constructor */
public X_W_MailMsg (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 2 - Client
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_MailMsg[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
@return Optional short description of the record
*/
public String getDescription ()
{
return (String)get_Value(COLUMNNAME_Description);
}
/** MailMsgType AD_Reference_ID=342 */
public static final int MAILMSGTYPE_AD_Reference_ID=342;
/** Order Acknowledgement = OA */
public static final String MAILMSGTYPE_OrderAcknowledgement = "OA";
/** Payment Acknowledgement = PA */
public static final String MAILMSGTYPE_PaymentAcknowledgement = "PA";
/** Payment Error = PE */
public static final String MAILMSGTYPE_PaymentError = "PE";
/** User Verification = UV */
public static final String MAILMSGTYPE_UserVerification = "UV";
/** User Password = UP */
public static final String MAILMSGTYPE_UserPassword = "UP";
/** Subscribe = LS */
public static final String MAILMSGTYPE_Subscribe = "LS";
/** UnSubscribe = LU */
public static final String MAILMSGTYPE_UnSubscribe = "LU";
/** User Account = UA */
public static final String MAILMSGTYPE_UserAccount = "UA";
/** Request = WR */
public static final String MAILMSGTYPE_Request = "WR";
/** Set Message Type.
@param MailMsgType
Mail Message Type
*/
public void setMailMsgType (String MailMsgType)
{
set_Value (COLUMNNAME_MailMsgType, MailMsgType);
}
/** Get Message Type.
@return Mail Message Type
*/
public String getMailMsgType ()
{
return (String)get_Value(COLUMNNAME_MailMsgType);
}
/** Set Message.
@param Message
EMail Message
*/
public void setMessage (String Message)
{
set_Value (COLUMNNAME_Message, Message);
}
/** Get Message.
@return EMail Message
*/
public String getMessage ()
{
return (String)get_Value(COLUMNNAME_Message);
}
/** Set Message 2.
@param Message2
Optional second part of the EMail Message
*/
public void setMessage2 (String Message2)
{
set_Value (COLUMNNAME_Message2, Message2);
}
/** Get Message 2.
@return Optional second part of the EMail Message
*/
public String getMessage2 ()
{
return (String)get_Value(COLUMNNAME_Message2);
}
/** Set Message 3.
@param Message3
Optional third part of the EMail Message
*/
public void setMessage3 (String Message3)
{
set_Value (COLUMNNAME_Message3, Message3);
}
/** Get Message 3.
@return Optional third part of the EMail Message
*/
public String getMessage3 ()
{
return (String)get_Value(COLUMNNAME_Message3);
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity
*/
public String getName ()
{
return (String)get_Value(COLUMNNAME_Name);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Subject.
@param Subject
Email Message Subject
*/
public void setSubject (String Subject)
{
set_Value (COLUMNNAME_Subject, Subject);
}
/** Get Subject.
@return Email Message Subject
*/
public String getSubject ()
{
return (String)get_Value(COLUMNNAME_Subject);
}
/** Set Mail Message.
@param W_MailMsg_ID
Web Store Mail Message Template
*/
public void setW_MailMsg_ID (int W_MailMsg_ID)
{
if (W_MailMsg_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, Integer.valueOf(W_MailMsg_ID));
}
/** Get Mail Message.
@return Web Store Mail Message Template
*/
public int getW_MailMsg_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_MailMsg_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set W_MailMsg_UU.
@param W_MailMsg_UU W_MailMsg_UU */
public void setW_MailMsg_UU (String W_MailMsg_UU)
{
set_Value (COLUMNNAME_W_MailMsg_UU, W_MailMsg_UU);
}
/** Get W_MailMsg_UU.
@return W_MailMsg_UU */
public String getW_MailMsg_UU ()
{
return (String)get_Value(COLUMNNAME_W_MailMsg_UU);
}
public org.compiere.model.I_W_Store getW_Store() throws RuntimeException
{
return (org.compiere.model.I_W_Store)MTable.get(getCtx(), org.compiere.model.I_W_Store.Table_Name)
.getPO(getW_Store_ID(), get_TrxName()); }
/** Set Web Store.
@param W_Store_ID
A Web Store of the Client
*/
public void setW_Store_ID (int W_Store_ID)
{
if (W_Store_ID < 1)
set_Value (COLUMNNAME_W_Store_ID, null);
else
set_Value (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID));
}
/** Get Web Store.
@return A Web Store of the Client
*/
public int getW_Store_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Store_ID);
if (ii == null)
return 0;
return ii.intValue();
}
}

View File

@ -1,844 +0,0 @@
/******************************************************************************
* Product: iDempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.KeyNamePair;
/** Generated Model for W_Store
* @author iDempiere (generated)
* @version Release 7.1 - $Id$ */
public class X_W_Store extends PO implements I_W_Store, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20191121L;
/** Standard Constructor */
public X_W_Store (Properties ctx, int W_Store_ID, String trxName)
{
super (ctx, W_Store_ID, trxName);
/** if (W_Store_ID == 0)
{
setC_PaymentTerm_ID (0);
setIsDefault (false);
setIsMenuAssets (true);
// Y
setIsMenuContact (true);
// Y
setIsMenuInterests (true);
// Y
setIsMenuInvoices (true);
// Y
setIsMenuOrders (true);
// Y
setIsMenuPayments (true);
// Y
setIsMenuRegistrations (true);
// Y
setIsMenuRequests (true);
// Y
setIsMenuRfQs (true);
// Y
setIsMenuShipments (true);
// Y
setM_PriceList_ID (0);
setM_Warehouse_ID (0);
setName (null);
setSalesRep_ID (0);
setURL (null);
setWebContext (null);
setW_Store_ID (0);
} */
}
/** Load Constructor */
public X_W_Store (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 2 - Client
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_W_Store[")
.append(get_ID()).append("]");
return sb.toString();
}
public org.compiere.model.I_C_PaymentTerm getC_PaymentTerm() throws RuntimeException
{
return (org.compiere.model.I_C_PaymentTerm)MTable.get(getCtx(), org.compiere.model.I_C_PaymentTerm.Table_Name)
.getPO(getC_PaymentTerm_ID(), get_TrxName()); }
/** Set Payment Term.
@param C_PaymentTerm_ID
The terms of Payment (timing, discount)
*/
public void setC_PaymentTerm_ID (int C_PaymentTerm_ID)
{
if (C_PaymentTerm_ID < 1)
set_Value (COLUMNNAME_C_PaymentTerm_ID, null);
else
set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID));
}
/** Get Payment Term.
@return The terms of Payment (timing, discount)
*/
public int getC_PaymentTerm_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
set_Value (COLUMNNAME_Description, Description);
}
/** Get Description.
@return Optional short description of the record
*/
public String getDescription ()
{
return (String)get_Value(COLUMNNAME_Description);
}
/** Set EMail Footer.
@param EMailFooter
Footer added to EMails
*/
public void setEMailFooter (String EMailFooter)
{
set_Value (COLUMNNAME_EMailFooter, EMailFooter);
}
/** Get EMail Footer.
@return Footer added to EMails
*/
public String getEMailFooter ()
{
return (String)get_Value(COLUMNNAME_EMailFooter);
}
/** Set EMail Header.
@param EMailHeader
Header added to EMails
*/
public void setEMailHeader (String EMailHeader)
{
set_Value (COLUMNNAME_EMailHeader, EMailHeader);
}
/** Get EMail Header.
@return Header added to EMails
*/
public String getEMailHeader ()
{
return (String)get_Value(COLUMNNAME_EMailHeader);
}
/** Set Comment/Help.
@param Help
Comment or Hint
*/
public void setHelp (String Help)
{
set_Value (COLUMNNAME_Help, Help);
}
/** Get Comment/Help.
@return Comment or Hint
*/
public String getHelp ()
{
return (String)get_Value(COLUMNNAME_Help);
}
/** Set Default.
@param IsDefault
Default value
*/
public void setIsDefault (boolean IsDefault)
{
set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault));
}
/** Get Default.
@return Default value
*/
public boolean isDefault ()
{
Object oo = get_Value(COLUMNNAME_IsDefault);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Assets.
@param IsMenuAssets
Show Menu Assets
*/
public void setIsMenuAssets (boolean IsMenuAssets)
{
set_Value (COLUMNNAME_IsMenuAssets, Boolean.valueOf(IsMenuAssets));
}
/** Get Menu Assets.
@return Show Menu Assets
*/
public boolean isMenuAssets ()
{
Object oo = get_Value(COLUMNNAME_IsMenuAssets);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Contact.
@param IsMenuContact
Show Menu Contact
*/
public void setIsMenuContact (boolean IsMenuContact)
{
set_Value (COLUMNNAME_IsMenuContact, Boolean.valueOf(IsMenuContact));
}
/** Get Menu Contact.
@return Show Menu Contact
*/
public boolean isMenuContact ()
{
Object oo = get_Value(COLUMNNAME_IsMenuContact);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Interests.
@param IsMenuInterests
Show Menu Interests
*/
public void setIsMenuInterests (boolean IsMenuInterests)
{
set_Value (COLUMNNAME_IsMenuInterests, Boolean.valueOf(IsMenuInterests));
}
/** Get Menu Interests.
@return Show Menu Interests
*/
public boolean isMenuInterests ()
{
Object oo = get_Value(COLUMNNAME_IsMenuInterests);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Invoices.
@param IsMenuInvoices
Show Menu Invoices
*/
public void setIsMenuInvoices (boolean IsMenuInvoices)
{
set_Value (COLUMNNAME_IsMenuInvoices, Boolean.valueOf(IsMenuInvoices));
}
/** Get Menu Invoices.
@return Show Menu Invoices
*/
public boolean isMenuInvoices ()
{
Object oo = get_Value(COLUMNNAME_IsMenuInvoices);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Orders.
@param IsMenuOrders
Show Menu Orders
*/
public void setIsMenuOrders (boolean IsMenuOrders)
{
set_Value (COLUMNNAME_IsMenuOrders, Boolean.valueOf(IsMenuOrders));
}
/** Get Menu Orders.
@return Show Menu Orders
*/
public boolean isMenuOrders ()
{
Object oo = get_Value(COLUMNNAME_IsMenuOrders);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Payments.
@param IsMenuPayments
Show Menu Payments
*/
public void setIsMenuPayments (boolean IsMenuPayments)
{
set_Value (COLUMNNAME_IsMenuPayments, Boolean.valueOf(IsMenuPayments));
}
/** Get Menu Payments.
@return Show Menu Payments
*/
public boolean isMenuPayments ()
{
Object oo = get_Value(COLUMNNAME_IsMenuPayments);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Registrations.
@param IsMenuRegistrations
Show Menu Registrations
*/
public void setIsMenuRegistrations (boolean IsMenuRegistrations)
{
set_Value (COLUMNNAME_IsMenuRegistrations, Boolean.valueOf(IsMenuRegistrations));
}
/** Get Menu Registrations.
@return Show Menu Registrations
*/
public boolean isMenuRegistrations ()
{
Object oo = get_Value(COLUMNNAME_IsMenuRegistrations);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Requests.
@param IsMenuRequests
Show Menu Requests
*/
public void setIsMenuRequests (boolean IsMenuRequests)
{
set_Value (COLUMNNAME_IsMenuRequests, Boolean.valueOf(IsMenuRequests));
}
/** Get Menu Requests.
@return Show Menu Requests
*/
public boolean isMenuRequests ()
{
Object oo = get_Value(COLUMNNAME_IsMenuRequests);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu RfQs.
@param IsMenuRfQs
Show Menu RfQs
*/
public void setIsMenuRfQs (boolean IsMenuRfQs)
{
set_Value (COLUMNNAME_IsMenuRfQs, Boolean.valueOf(IsMenuRfQs));
}
/** Get Menu RfQs.
@return Show Menu RfQs
*/
public boolean isMenuRfQs ()
{
Object oo = get_Value(COLUMNNAME_IsMenuRfQs);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Menu Shipments.
@param IsMenuShipments
Show Menu Shipments
*/
public void setIsMenuShipments (boolean IsMenuShipments)
{
set_Value (COLUMNNAME_IsMenuShipments, Boolean.valueOf(IsMenuShipments));
}
/** Get Menu Shipments.
@return Show Menu Shipments
*/
public boolean isMenuShipments ()
{
Object oo = get_Value(COLUMNNAME_IsMenuShipments);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
public org.compiere.model.I_M_PriceList getM_PriceList() throws RuntimeException
{
return (org.compiere.model.I_M_PriceList)MTable.get(getCtx(), org.compiere.model.I_M_PriceList.Table_Name)
.getPO(getM_PriceList_ID(), get_TrxName()); }
/** Set Price List.
@param M_PriceList_ID
Unique identifier of a Price List
*/
public void setM_PriceList_ID (int M_PriceList_ID)
{
if (M_PriceList_ID < 1)
set_Value (COLUMNNAME_M_PriceList_ID, null);
else
set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID));
}
/** Get Price List.
@return Unique identifier of a Price List
*/
public int getM_PriceList_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_M_Warehouse getM_Warehouse() throws RuntimeException
{
return (org.compiere.model.I_M_Warehouse)MTable.get(getCtx(), org.compiere.model.I_M_Warehouse.Table_Name)
.getPO(getM_Warehouse_ID(), get_TrxName()); }
/** Set Warehouse.
@param M_Warehouse_ID
Storage Warehouse and Service Point
*/
public void setM_Warehouse_ID (int M_Warehouse_ID)
{
if (M_Warehouse_ID < 1)
set_Value (COLUMNNAME_M_Warehouse_ID, null);
else
set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID));
}
/** Get Warehouse.
@return Storage Warehouse and Service Point
*/
public int getM_Warehouse_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity
*/
public String getName ()
{
return (String)get_Value(COLUMNNAME_Name);
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair
*/
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException
{
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
.getPO(getSalesRep_ID(), get_TrxName()); }
/** Set Sales Representative.
@param SalesRep_ID
Sales Representative or Company Agent
*/
public void setSalesRep_ID (int SalesRep_ID)
{
if (SalesRep_ID < 1)
set_Value (COLUMNNAME_SalesRep_ID, null);
else
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
}
/** Get Sales Representative.
@return Sales Representative or Company Agent
*/
public int getSalesRep_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Stylesheet.
@param Stylesheet
CSS (Stylesheet) used
*/
public void setStylesheet (String Stylesheet)
{
set_Value (COLUMNNAME_Stylesheet, Stylesheet);
}
/** Get Stylesheet.
@return CSS (Stylesheet) used
*/
public String getStylesheet ()
{
return (String)get_Value(COLUMNNAME_Stylesheet);
}
/** Set URL.
@param URL
Full URL address - e.g. http://www.idempiere.org
*/
public void setURL (String URL)
{
set_Value (COLUMNNAME_URL, URL);
}
/** Get URL.
@return Full URL address - e.g. http://www.idempiere.org
*/
public String getURL ()
{
return (String)get_Value(COLUMNNAME_URL);
}
/** Set Web Context.
@param WebContext
Web Server Context - e.g. /wstore
*/
public void setWebContext (String WebContext)
{
set_Value (COLUMNNAME_WebContext, WebContext);
}
/** Get Web Context.
@return Web Server Context - e.g. /wstore
*/
public String getWebContext ()
{
return (String)get_Value(COLUMNNAME_WebContext);
}
/** Set Web Store Info.
@param WebInfo
Web Store Header Information
*/
public void setWebInfo (String WebInfo)
{
set_Value (COLUMNNAME_WebInfo, WebInfo);
}
/** Get Web Store Info.
@return Web Store Header Information
*/
public String getWebInfo ()
{
return (String)get_Value(COLUMNNAME_WebInfo);
}
/** Set Web Order EMail.
@param WebOrderEMail
EMail address to receive notifications when web orders were processed
*/
public void setWebOrderEMail (String WebOrderEMail)
{
set_Value (COLUMNNAME_WebOrderEMail, WebOrderEMail);
}
/** Get Web Order EMail.
@return EMail address to receive notifications when web orders were processed
*/
public String getWebOrderEMail ()
{
return (String)get_Value(COLUMNNAME_WebOrderEMail);
}
/** Set Web Parameter 1.
@param WebParam1
Web Site Parameter 1 (default: header image)
*/
public void setWebParam1 (String WebParam1)
{
set_Value (COLUMNNAME_WebParam1, WebParam1);
}
/** Get Web Parameter 1.
@return Web Site Parameter 1 (default: header image)
*/
public String getWebParam1 ()
{
return (String)get_Value(COLUMNNAME_WebParam1);
}
/** Set Web Parameter 2.
@param WebParam2
Web Site Parameter 2 (default index page)
*/
public void setWebParam2 (String WebParam2)
{
set_Value (COLUMNNAME_WebParam2, WebParam2);
}
/** Get Web Parameter 2.
@return Web Site Parameter 2 (default index page)
*/
public String getWebParam2 ()
{
return (String)get_Value(COLUMNNAME_WebParam2);
}
/** Set Web Parameter 3.
@param WebParam3
Web Site Parameter 3 (default left - menu)
*/
public void setWebParam3 (String WebParam3)
{
set_Value (COLUMNNAME_WebParam3, WebParam3);
}
/** Get Web Parameter 3.
@return Web Site Parameter 3 (default left - menu)
*/
public String getWebParam3 ()
{
return (String)get_Value(COLUMNNAME_WebParam3);
}
/** Set Web Parameter 4.
@param WebParam4
Web Site Parameter 4 (default footer left)
*/
public void setWebParam4 (String WebParam4)
{
set_Value (COLUMNNAME_WebParam4, WebParam4);
}
/** Get Web Parameter 4.
@return Web Site Parameter 4 (default footer left)
*/
public String getWebParam4 ()
{
return (String)get_Value(COLUMNNAME_WebParam4);
}
/** Set Web Parameter 5.
@param WebParam5
Web Site Parameter 5 (default footer center)
*/
public void setWebParam5 (String WebParam5)
{
set_Value (COLUMNNAME_WebParam5, WebParam5);
}
/** Get Web Parameter 5.
@return Web Site Parameter 5 (default footer center)
*/
public String getWebParam5 ()
{
return (String)get_Value(COLUMNNAME_WebParam5);
}
/** Set Web Parameter 6.
@param WebParam6
Web Site Parameter 6 (default footer right)
*/
public void setWebParam6 (String WebParam6)
{
set_Value (COLUMNNAME_WebParam6, WebParam6);
}
/** Get Web Parameter 6.
@return Web Site Parameter 6 (default footer right)
*/
public String getWebParam6 ()
{
return (String)get_Value(COLUMNNAME_WebParam6);
}
/** Set Web Store EMail.
@param WStoreEMail
EMail address used as the sender (From)
*/
public void setWStoreEMail (String WStoreEMail)
{
set_Value (COLUMNNAME_WStoreEMail, WStoreEMail);
}
/** Get Web Store EMail.
@return EMail address used as the sender (From)
*/
public String getWStoreEMail ()
{
return (String)get_Value(COLUMNNAME_WStoreEMail);
}
/** Set Web Store.
@param W_Store_ID
A Web Store of the Client
*/
public void setW_Store_ID (int W_Store_ID)
{
if (W_Store_ID < 1)
set_ValueNoCheck (COLUMNNAME_W_Store_ID, null);
else
set_ValueNoCheck (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID));
}
/** Get Web Store.
@return A Web Store of the Client
*/
public int getW_Store_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_W_Store_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set WebStore User.
@param WStoreUser
User ID of the Web Store EMail address
*/
public void setWStoreUser (String WStoreUser)
{
set_Value (COLUMNNAME_WStoreUser, WStoreUser);
}
/** Get WebStore User.
@return User ID of the Web Store EMail address
*/
public String getWStoreUser ()
{
return (String)get_Value(COLUMNNAME_WStoreUser);
}
/** Set WebStore Password.
@param WStoreUserPW
Password of the Web Store EMail address
*/
public void setWStoreUserPW (String WStoreUserPW)
{
set_Value (COLUMNNAME_WStoreUserPW, WStoreUserPW);
}
/** Get WebStore Password.
@return Password of the Web Store EMail address
*/
public String getWStoreUserPW ()
{
return (String)get_Value(COLUMNNAME_WStoreUserPW);
}
/** Set W_Store_UU.
@param W_Store_UU W_Store_UU */
public void setW_Store_UU (String W_Store_UU)
{
set_Value (COLUMNNAME_W_Store_UU, W_Store_UU);
}
/** Get W_Store_UU.
@return W_Store_UU */
public String getW_Store_UU ()
{
return (String)get_Value(COLUMNNAME_W_Store_UU);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,689 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved.
* This program is free software; you can redistribute it and/or modify it
* under the terms version 2 of the GNU General Public License as published
* by the Free Software Foundation. This program is distributed in the hope
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
* You may reach us at: ComPiere, Inc. - http://www.adempiere.org/license.html
* 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA or info@adempiere.org
*****************************************************************************/
package org.compiere.util;
import java.io.IOException;
import java.util.Properties;
import java.util.logging.Level;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.compiere.model.MBPBankAccount;
import org.compiere.model.MMailMsg;
import org.compiere.model.MSession;
/**
* WebLogin provides a standard interface to login
* from Webapps like WStore or CM
*
* @author Yves Sandfort
* @version $Id$
*/
public class WebLogin
{
/** Logging */
private CLogger log = CLogger.getCLogger(getClass());
private final static String COOKIE_NAME = "CompiereWebUser";
/** Forward Parameter */
private String P_ForwardTo = "ForwardTo";
/** SalesRep Parameter */
private String P_SalesRep_ID = "SalesRep_ID";
/** EMail Parameter */
private String P_EMail = "EMail";
/** Password Parameter */
private String P_Password = "Password";
/** Mode/Action Parameter */
private String P_Action = "Mode";
/** Login Page */
private String m_login_page = "/login.jsp";
/** Update Page */
private String m_update_page = "/update.jsp";
/** Message */
private String m_message = null;
/** Context */
private Properties m_ctx;
/** HttpServletRequest */
private HttpServletRequest m_request;
/** HttpServletResponse */
private HttpServletResponse m_response;
/** HttpSession */
private HttpSession m_session;
/** adressConfirm */
private boolean m_addressConfirm;
/** forward */
private String m_forward;
/** SalesRep */
private String m_salesRep;
/** EMail */
private String m_email;
/** Password */
private String m_password;
/** WebUser */
private WebUser m_wu;
/** Mode */
private String m_mode;
/**
* WebLogin
* @param t_request
* @param t_response
* @param t_ctx
*/
public WebLogin (HttpServletRequest t_request, HttpServletResponse t_response, Properties t_ctx)
{
m_request = t_request;
m_response = t_response;
m_ctx = t_ctx;
// We will check the Request to see whether Parameters are overwritten
if (m_request.getParameter ("P_ForwardTo")!=null)
setP_ForwardTo (m_request.getParameter("P_ForwardTo"));
if (m_request.getParameter ("SalesRep_ID")!=null)
setP_SalesRep_ID (m_request.getParameter ("SalesRep_ID"));
if (m_request.getParameter ("P_EMail")!=null)
setP_EMail (m_request.getParameter ("P_EMail"));
if (m_request.getParameter ("P_Password")!=null)
setP_Password (m_request.getParameter ("P_Password"));
if (m_request.getParameter ("P_Action")!=null)
setP_Action (m_request.getParameter ("P_Action"));
if (m_request.getParameter ("LOGIN_RelURL")!=null)
setLogin_RelURL (m_request.getParameter ("LOGIN_RelURL"));
if (m_request.getParameter ("update_page")!=null)
setLogin_RelURL (m_request.getParameter ("update_page"));
}
/**
* init will initialize the WebLogin Object for further use
* @return true if init was successfull
*/
public boolean init()
{
m_session = m_request.getSession(true); // create new
m_forward = WebUtil.getParameter (m_request, P_ForwardTo); // get forward from request
if (m_forward != null)
m_session.setAttribute(P_ForwardTo, m_forward);
else
m_forward = "";
m_salesRep = WebUtil.getParameter (m_request, P_SalesRep_ID); // get SalesRep from request
if (m_salesRep != null)
m_session.setAttribute(P_SalesRep_ID, m_salesRep);
// Get Base Info
m_email = WebUtil.getParameter (m_request, P_EMail);
if (m_email == null)
m_email = "";
m_email = m_email.trim();
if (m_email != null)
m_session.setAttribute (P_EMail, m_email);
m_password = WebUtil.getParameter (m_request, P_Password);
if (m_password == null)
m_password = ""; // null loads w/o check
m_password = m_password.trim();
if (m_session.getAttribute (WebInfo.NAME)!=null)
{
WebInfo wi = (WebInfo)m_session.getAttribute(WebInfo.NAME);
m_wu = wi.getWebUser ();
}
return true;
}
/**
* Action run functions against the Login process.
* @return true if successfull
* @throws IOException
* @throws ServletException
*/
public boolean action() throws IOException, ServletException
{
//remote Address
String remoteIP = m_request.getHeader("X-Forwarded-For");
remoteIP = remoteIP!=null ? remoteIP : m_request.getRemoteAddr();
// Mode
if (getMode() == null)
{
String s = WebUtil.getParameter (m_request, P_Action);
setMode(s);
}
boolean deleteCookie = "deleteCookie".equals(m_mode);
if (deleteCookie)
{
log.fine("** deleteCookie");
WebUtil.deleteCookieWebUser (m_request, m_response, COOKIE_NAME);
}
//
boolean logout = "logout".equals(m_mode);
if (logout || deleteCookie)
{
log.fine("** logout");
if (m_session != null)
{
MSession cSession = MSession.get (m_ctx, false);
if (cSession != null)
cSession.logout();
//
m_wu = (WebUser)m_session.getAttribute(WebUser.NAME);
if (m_wu != null)
m_wu.logout();
m_session.removeAttribute(WebUser.NAME);
m_session.setMaxInactiveInterval(1);
m_session.invalidate ();
}
// Forward to unsecure /
WebUtil.createForwardPage(m_response, "Logout", m_request.getScheme() + "://" + m_request.getServerName() + ":" + m_request.getServerPort() + "/", 2);
}
// Send EMail *** Send Password EMail Request
else if ("SendEMail".equals(m_mode))
{
log.info("** send mail");
m_wu = WebUser.get (m_ctx, m_email); // find it
if (!m_wu.isEMailValid())
m_wu.setPasswordMessage("EMail not found in system");
else
{
m_wu.setPassword(); // set password to current
//
String msg = WebUtil.sendEMail (m_request, m_wu,
MMailMsg.MAILMSGTYPE_UserPassword, new Object[]{
m_request.getServerName(),
m_wu.getName(),
WebUtil.getFrom(m_request),
m_wu.getPassword()});
if (EMail.SENT_OK.equals(msg))
m_wu.setPasswordMessage ("EMail sent");
else
m_wu.setPasswordMessage ("Problem sending EMail: " + msg);
}
m_forward = getLogin_RelURL ();
} // SendEMail
// Login
else if ("Login".equals(m_mode))
{
if (log.isLoggable(Level.INFO)) log.info("** login " + m_email + "/" + m_password);
// add Cookie
WebUtil.addCookieWebUser(m_request, m_response, m_email, COOKIE_NAME);
// Always re-query
m_wu = WebUser.get (m_ctx, m_email, m_password, false);
m_wu.login(m_password);
// Password valid
if (m_wu.isLoggedIn())
{
if (m_forward==null || m_forward.equals(getLogin_RelURL ()))
m_forward = "/index.jsp";
// Create Session with User ID
MSession cSession = MSession.get (m_ctx, remoteIP,
m_request.getRemoteHost(), m_session.getId());
if (cSession != null)
cSession.setWebStoreSession(true);
}
else
{
m_forward = getLogin_RelURL ();
if (log.isLoggable(Level.FINE)) log.fine("- PasswordMessage=" + m_wu.getPasswordMessage());
}
// If no session exists or is not loaded, load or create it
if (m_session==null)
m_session = m_request.getSession (true);
m_session.setAttribute (WebInfo.NAME, new WebInfo (m_ctx, m_wu));
} // Login
// Login New
else if ("LoginNew".equals(m_mode))
{
log.info("** loginNew");
WebUtil.addCookieWebUser(m_request, m_response, "", COOKIE_NAME);
m_wu = WebUser.get (m_ctx, "");
m_forward = getLogin_RelURL ();
}
// Submit - update/new Contact
else if ("Submit".equals(m_mode))
{
if (log.isLoggable(Level.INFO)) log.info("** submit " + m_email + "/" + m_password + " - AddrConf=" + m_addressConfirm);
// we have a record for address update
if (m_wu != null && m_wu.isLoggedIn() && m_addressConfirm) // address update
;
else // Submit - always re-load user record
m_wu = WebUser.get (m_ctx, m_email, null, false); // load w/o password check direct
//
if (m_wu.getAD_User_ID() != 0) // existing BPC
{
String passwordNew = WebUtil.getParameter (m_request, "PasswordNew");
if (passwordNew == null)
passwordNew = "";
boolean passwordChange = passwordNew.length() > 0 && !passwordNew.equals(m_password);
if (m_addressConfirm || m_wu.login (m_password))
{
// Create / set session
if (m_wu.isLoggedIn())
{
MSession cSession = MSession.get (m_ctx, remoteIP,
m_request.getRemoteHost(), m_session.getId());
if (cSession != null)
cSession.setWebStoreSession(true);
}
//
if (passwordChange)
if (log.isLoggable(Level.FINE)) log.fine("- update Pwd " + m_email + ", Old=" + m_password + ", DB=" + m_wu.getPassword() + ", New=" + passwordNew);
if (WebUtil.updateFields(m_request, m_wu, passwordChange))
{
if (passwordChange)
m_session.setAttribute(WebSessionCtx.HDR_MESSAGE, "Password changed");
}
else
{
m_forward = getLogin_RelURL ();
log.warning(" - update not done");
}
}
else
{
m_forward = getLogin_RelURL ();
m_session.setAttribute(WebSessionCtx.HDR_MESSAGE, "Email/Password not correct");
log.warning(" - update not confirmed");
}
}
else // new
{
if (log.isLoggable(Level.FINE)) log.fine("** new " + m_email + "/" + m_password);
m_wu.setEmail (m_email);
m_wu.setPassword (m_password);
if (WebUtil.updateFields (m_request, m_wu, true))
{
if (m_wu.login(m_password))
{
m_session.setAttribute (WebInfo.NAME, new WebInfo (m_ctx, m_wu));
// Create / set session
MSession cSession = MSession.get (m_ctx, remoteIP,
m_request.getRemoteHost(), m_session.getId());
if (cSession != null)
cSession.setWebStoreSession(true);
WebUtil.resendCode(m_request, m_wu);
}
else
m_forward = getLogin_RelURL ();
}
else
{
if (log.isLoggable(Level.FINE)) log.fine("- failed - " + m_wu.getSaveErrorMessage() + " - " + m_wu.getPasswordMessage());
m_forward = getLogin_RelURL ();
}
} // new
if (m_wu!=null)
m_session.setAttribute (WebInfo.NAME, new WebInfo (m_ctx, m_wu));
} // Submit
else if("email".equals(m_mode))
{
String email = WebUtil.getParameter (m_request, "EMail");
if (email == null)
email = "";
email = email.trim();
String emailNew = WebUtil.getParameter (m_request, "EMailNew");
if (emailNew == null)
emailNew = "";
email = email.trim();
if((emailNew.length() == 0)||(emailNew.equals(email)))
{
setMessage("New EMail invalid.");
return false;
}
if(!WebUtil.isEmailValid(emailNew))
{
setMessage("New EMail invalid.");
return false;
}
m_wu.setEmail(emailNew);
m_wu.save();
m_session.setAttribute(WebSessionCtx.HDR_MESSAGE, "EMail Address Changed");
m_session.setAttribute(WebInfo.NAME, new WebInfo(m_ctx, m_wu));
}
else if("password".equals(m_mode))
{
if (m_wu == null)
{
log.warning("No web user");
return false;
}
String password = WebUtil.getParameter (m_request, "Password");
if (password == null)
password = ""; // null loads w/o check
password = password.trim();
if(!m_wu.login(password))
{
setMessage("Email/Password not correct");
return false;
}
MSession cSession = MSession.get (m_ctx, remoteIP, m_request.getRemoteHost(), m_session.getId());
if (cSession != null)
cSession.setWebStoreSession(true);
String passwordNew = WebUtil.getParameter (m_request, "PasswordNew");
if (passwordNew == null)
passwordNew = "";
password = password.trim();
if( (passwordNew.length() == 0) || (passwordNew.equals(password)))
{
setMessage("New Password invalid.");
return false;
}
m_wu.setPasswordMessage(null);
m_wu.setPassword(passwordNew);
if(m_wu.getPasswordMessage() != null)
{
setMessage("New Password invalid.");
return false;
}
m_wu.save();
if (m_forward==null || m_forward.equals(getLogin_RelURL ()))
m_forward = "/index.jsp";
m_session.setAttribute(WebSessionCtx.HDR_MESSAGE, "Password Changed");
m_session.setAttribute(WebInfo.NAME, new WebInfo(m_ctx, m_wu));
}
else if("address".equals(m_mode))
{
m_wu.setC_Country_ID(WebUtil.getParamOrNull(m_request, "C_Country_ID"));
m_wu.setC_Region_ID(WebUtil.getParamOrNull(m_request, "C_Region_ID"));
m_wu.setRegionName(WebUtil.getParamOrNull(m_request, "RegionName"));
m_wu.setName(WebUtil.getParamOrNull(m_request, "Name"));
m_wu.setCompany(WebUtil.getParamOrNull(m_request, "Company"));
m_wu.setTitle(WebUtil.getParamOrNull(m_request, "Title"));
m_wu.setAddress(WebUtil.getParamOrNull(m_request, "Address"));
m_wu.setAddress2(WebUtil.getParamOrNull(m_request, "Address2"));
m_wu.setCity(WebUtil.getParamOrNull(m_request, "City"));
m_wu.setPostal(WebUtil.getParamOrNull(m_request, "Postal"));
m_wu.setPhone(WebUtil.getParamOrNull(m_request, "Phone"));
m_wu.setFax(WebUtil.getParamOrNull(m_request, "Fax"));
m_wu.save();
m_session.setAttribute(WebSessionCtx.HDR_MESSAGE, "Contact Information Changed");
m_session.setAttribute(WebInfo.NAME, new WebInfo(m_ctx, m_wu));
}
else if ("EMailVerify".equals(m_mode))
{
if (m_wu == null)
{
log.warning("No web user");
return false;
}
if (log.isLoggable(Level.INFO)) log.info(m_forward + " - " + m_wu.toString());
String cmd = WebUtil.getParameter(m_request, "ReSend");
if (cmd != null && cmd.length() > 1)
WebUtil.resendCode(m_request, m_wu);
else
m_wu.setEMailVerifyCode(WebUtil.getParameter(m_request, "VerifyCode"), m_request.getRemoteAddr());
}
else if ("bankaccountach".equals(m_mode))
{
if (m_wu == null)
{
log.warning("No web user");
return false;
}
if (log.isLoggable(Level.INFO)) log.info(m_forward + " - " + m_wu.toString());
MBPBankAccount thisBPBankAccount = m_wu.getBankAccount (true);
// As this sets bankaccountach
thisBPBankAccount.setIsACH (true);
thisBPBankAccount.setA_City (WebUtil.getParamOrNull (m_request, "A_City"));
thisBPBankAccount.setA_Name (WebUtil.getParamOrNull (m_request, "A_Name"));
thisBPBankAccount.setAccountNo (WebUtil.getParamOrNull (m_request, "AccountNo"));
thisBPBankAccount.setRoutingNo (WebUtil.getParamOrNull (m_request, "RoutingNo"));
thisBPBankAccount.saveEx();
}
else
log.log(Level.WARNING, "Unknown request='" + m_mode + "'");
return true;
} // action
/**
* setMessage to set a Message
* @param newVal
*/
public void setMessage(String newVal)
{
if (newVal!=null)
m_message = newVal;
}
/**
* getMessage back
* @return Message
*/
public String getMessage()
{
return m_message;
}
/**
* setP_ForwardTo to overwrite default "ForwardTo" Parameter
* @param newVal new value to look for
*/
public void setP_ForwardTo(String newVal)
{
if (newVal!=null)
P_ForwardTo = newVal;
}
/**
* getP_ForwardTo
* @return ForwardTo request parameter
*/
public String getP_ForwardTo()
{
return P_ForwardTo;
}
/**
* setP_EMail to overwrite default "EMail" Parameter
* @param newVal new value to look for
*/
public void setP_EMail(String newVal)
{
if (newVal!=null)
P_EMail = newVal;
}
/**
* getP_EMail
* @return EMail request parameter
*/
public String getP_EMail()
{
return P_EMail;
}
/**
* setP_Password to overwrite default "Password" Parameter
* @param newVal new value to look for
*/
public void setP_Password(String newVal)
{
if (newVal!=null)
P_Password = newVal;
}
/**
* getP_Password
* @return Password request parameter
*/
public String getP_Password()
{
return P_Password;
}
/**
* setP_SalesRep_ID to overwrite default "SalesRep_ID" Parameter
* @param newVal new value to look for
*/
public void setP_SalesRep_ID(String newVal)
{
if (newVal!=null)
P_SalesRep_ID = newVal;
}
/**
* getP_SalesRep_ID
* @return SalesRep_ID request parameter
*/
public String getP_SalesRep_ID()
{
return P_SalesRep_ID;
}
/**
* setP_Action to overwrite default "Action/Mode" Parameter
* @param newVal new value to look for
*/
public void setP_Action(String newVal)
{
if (newVal!=null)
P_Action = newVal;
}
/**
* getP_SalesRep_ID
* @return SalesRep_ID request parameter
*/
public String getP_Action()
{
return P_Action;
}
/**
* setLogin_RelURL to overwrite default Login Relative URL
* @param newVal new relative URL inside Domain to goto
*/
public void setLogin_RelURL(String newVal)
{
if (newVal!=null)
m_login_page = newVal;
}
/**
* getLogin_RelURL
* @return Login_RelURL request parameter
*/
public String getLogin_RelURL()
{
return m_login_page;
}
/**
* setLogin_RelURL to overwrite default Login Relative URL
* @param newVal new relative URL inside Domain to goto
*/
public void setUpdate_page(String newVal)
{
if (newVal!=null)
m_update_page = newVal;
}
/**
* getLogin_RelURL
* @return Login_RelURL request parameter
*/
public String getUpdate_page()
{
return m_update_page;
}
/**
* setForward updates Forward URL
* @param newVal
*/
public void setForward(String newVal)
{
if (newVal!=null)
m_forward = newVal;
}
/**
* getForward
* @return URL to forward request on to
*/
public String getForward()
{
return m_forward;
}
/**
* getSalesRep_ID
* @return SalesRep_ID of the SalesRep_ID in the Request
*/
public String getSalesRep_ID()
{
return m_salesRep;
}
/**
* setAddressConfirm
* @param newVal new addressConfirm
*/
public void setAddressConfirm(boolean newVal)
{
m_addressConfirm = newVal;
}
/**
* getAdressConfirm
* @return boolean addressConfirm
*/
public boolean getAddressConfirm()
{
return m_addressConfirm;
}
public WebUser getWebUser()
{
return m_wu;
}
public void setMode(String t_mode)
{
m_mode = t_mode;
}
public String getMode()
{
return m_mode;
}
}

View File

@ -1,429 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.util;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Enumeration;
import java.util.Locale;
import java.util.Properties;
import java.util.logging.Level;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.compiere.model.MClient;
import org.compiere.model.MStore;
/**
* Web Session Context Value Object
*
* @author Jorg Janke
* @version $Id: WebSessionCtx.java,v 1.6 2006/09/23 11:04:19 comdivision Exp $
*/
public class WebSessionCtx implements Serializable
{
/** SV */
private static final long serialVersionUID = -5069858671373130221L;
/**
* Get/create Web Session Context
* @param request request
* @return ctx or null
*/
public static WebSessionCtx get (HttpServletRequest request, int W_Store_ID)
{
HttpSession session = request.getSession(false);
if (session == null)
session = request.getSession(true);
if (session == null)
return null;
WebSessionCtx wsc = (WebSessionCtx)session.getAttribute(NAME);
// Create New
if (wsc == null)
{
wsc = new WebSessionCtx(request, W_Store_ID);
session.setAttribute(NAME, wsc);
}
return wsc;
} // get
/**
* Get/create Web Session Context
* @param request request
* @return ctx or null
*/
public static WebSessionCtx get (HttpServletRequest request)
{
HttpSession session = request.getSession(false);
if (session == null)
session = request.getSession(true);
if (session == null)
return null;
WebSessionCtx wsc = (WebSessionCtx)session.getAttribute(NAME);
// Create New
if (wsc == null)
{
wsc = new WebSessionCtx (request);
session.setAttribute(NAME, wsc);
}
wsc.setLanguage(request);
return wsc;
} // get
/** Context */
public final static String CTX_SERVER_CONTEXT = "context";
/** Dodument Directory */
public final static String CTX_DOCUMENT_DIR = "documentDir";
/** Header (Error) Message */
public final static String HDR_MESSAGE = "hdrMessage";
/** Header Info Message */
public final static String HDR_INFO = "hdrInfo";
/** Logger */
static private CLogger log = CLogger.getCLogger (WebSessionCtx.class);
/** Cache 60 minutes */
static private CCache<Integer,Properties> s_cacheCtx = new CCache<Integer,Properties>(null, "WebSessionCtx", 30, 60, false);
/**************************************************************************
* Web Session Context
* @param request request
*/
private WebSessionCtx (HttpServletRequest request)
{
if (log.isLoggable(Level.INFO)) log.info (request.getContextPath() + " (" + request.getRemoteAddr()
+ " - " + request.getLocale() + ") #" + counter);
ctx = new Properties();
setLanguage(request);
HttpSession session = request.getSession(false);
// Add Servlet Init Parameters (webStore/src/web/WEB-INF/web.xml)
ServletContext sc = session.getServletContext();
Enumeration<String> en = sc.getInitParameterNames();
while (en.hasMoreElements())
{
String key = (String)en.nextElement();
String value = sc.getInitParameter(key);
ctx.setProperty(key, value);
if (log.isLoggable(Level.CONFIG)) log.config (key + "=" + value);
}
setWStore (request.getContextPath());
ctx = getDefaults ();
// ServerContext - dev2/wstore
ctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());
// Make Context directly availabe to jsp's
session.setAttribute("ctx", ctx);
//
if (log.isLoggable(Level.FINE)) log.fine("#" + ctx.size());
} // WebSessionCtx
/**************************************************************************
* Web Session Context
* @param request request
*/
private WebSessionCtx (HttpServletRequest request, int W_Store_ID)
{
if (log.isLoggable(Level.INFO)) log.info (request.getContextPath() + " (" + request.getRemoteAddr()
+ " - " + request.getLocale() + ") #" + counter);
ctx = new Properties();
setLanguage(request);
HttpSession session = request.getSession(false);
// Add Servlet Init Parameters (webStore/src/web/WEB-INF/web.xml)
ServletContext sc = session.getServletContext();
Enumeration<String> en = sc.getInitParameterNames();
while (en.hasMoreElements())
{
String key = (String)en.nextElement();
String value = sc.getInitParameter(key);
ctx.setProperty(key, value);
if (log.isLoggable(Level.CONFIG)) log.config (key + "=" + value);
}
setWStore (W_Store_ID);
ctx = getDefaults ();
// ServerContext - dev2/wstore
ctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());
// Make Context directly availabe to jsp's
session.setAttribute("ctx", ctx);
//
if (log.isLoggable(Level.FINE)) log.fine("#" + ctx.size());
} // WebSessionCtx
/** Sessition Attribute Name */
public static final String NAME = "WebSessionCtx";
/** Static counter */
public static int s_counter = 0;
/** Instance Counter */
public int counter = ++s_counter;
/** Session Context */
public Properties ctx = null;
/** Session Language */
public Language language = null;
/** Localized Date format */
public SimpleDateFormat dateFormat = null;
/** Localized Timestamp format */
public SimpleDateFormat dateTimeFormat = null;
/** Localized Amount format */
public DecimalFormat amountFormat = null;
/** Localized Integer format */
public DecimalFormat integerFormat = null;
/** Localized Number format */
public DecimalFormat numberFormat = null;
/** Localized Quantity format */
public DecimalFormat quantityFormat = null;
/** Login Info */
public String loginInfo = "";
/** Web Store */
public MStore wstore = null;
/**
* Set Web Store
* @param contextPath web server context path
*/
private void setWStore (String contextPath)
{
// get from context
int W_Store_ID = Env.getContextAsInt(ctx, "W_Store_ID");
if (W_Store_ID != 0)
{
wstore = MStore.get(ctx, W_Store_ID);
if (wstore.getW_Store_ID() != 0)
{
if (log.isLoggable(Level.INFO)) log.info("From web.xml - " + wstore);
return;
}
}
if ("/adempiere".equals(contextPath)) // HTML UI
return;
// Modifications for POSterita
if(wstore == null)
{
wstore = MStore.get(ctx, contextPath);
}
// End Modifications for Posterita
if (wstore == null)
throw new IllegalStateException("No Web Store found - " + contextPath);
} // setWStore
/**
* Set Web Store
* @param W_Store_ID Web Store ID
*/
public void setWStore (int W_Store_ID)
{
// get from context
if (W_Store_ID != 0)
{
wstore = MStore.get(ctx, W_Store_ID);
if (wstore.getW_Store_ID() != 0)
{
if (log.isLoggable(Level.INFO)) log.info("From web.xml - " + wstore);
return;
}
}
if (wstore == null)
throw new IllegalStateException("No Web Store found - ID: " + W_Store_ID);
} // setWStore
/**
* Get Web Store Defaults
* @return context
*/
private Properties getDefaults ()
{
// No Web Store
if (wstore == null)
return new Properties();
//
Integer key = Integer.valueOf(wstore.getW_Store_ID());
Properties newCtx = (Properties)s_cacheCtx.get(key);
/** Create New Context */
if (newCtx == null)
{
if (log.isLoggable(Level.INFO)) log.info(wstore.getWebContext());
newCtx = new Properties();
// copy explicitly
Enumeration<?> e = ctx.keys();
while (e.hasMoreElements())
{
String pKey = (String)e.nextElement();
newCtx.setProperty(pKey, ctx.getProperty(pKey));
}
Env.setContext(newCtx, "#AD_Client_ID", wstore.getAD_Client_ID());
Env.setContext(newCtx, "#AD_Org_ID", wstore.getAD_Org_ID());
//
Env.setContext(newCtx, "#SalesRep_ID", wstore.getSalesRep_ID());
Env.setContext(newCtx, "#M_PriceList_ID", wstore.getM_PriceList_ID());
Env.setContext(newCtx, "#M_Warehouse_ID", wstore.getM_Warehouse_ID());
//
String s = wstore.getWebParam1();
Env.setContext(newCtx, "webParam1", s == null ? "" : s);
s = wstore.getWebParam2();
Env.setContext(newCtx, "webParam2", s == null ? "" : s);
s = wstore.getWebParam3();
Env.setContext(newCtx, "webParam3", s == null ? "" : s);
s = wstore.getWebParam4();
Env.setContext(newCtx, "webParam4", s == null ? "" : s);
s = wstore.getWebParam5();
Env.setContext(newCtx, "webParam5", s == null ? "" : s);
s = wstore.getWebParam6();
Env.setContext(newCtx, "webParam6", s == null ? "" : s);
s = wstore.getStylesheet();
if (s == null)
s = "standard";
else
{
int index = s.lastIndexOf('.');
if (index != -1)
s = s.substring(0, index);
}
Env.setContext(newCtx, "Stylesheet", s);
//
s = wstore.getWebInfo();
if (s != null && s.length() > 0)
Env.setContext(newCtx, HDR_INFO, s);
// Payment Term
Env.setContext(newCtx, "#M_PriceList_ID", wstore.getM_PriceList_ID());
// Default User - SalesRep
if (Env.getContextAsInt(newCtx, "#AD_User_ID") == 0)
Env.setContext(newCtx, "#AD_User_ID", wstore.getSalesRep_ID());
// Default Role for access
if (Env.getContextAsInt(newCtx, "#AD_Role_ID") == 0)
{
int AD_Role_ID = 0; // HARDCODED - System
Env.setContext(newCtx, "#AD_Role_ID", AD_Role_ID);
}
// Client
MClient client = MClient.get (newCtx, wstore.getAD_Client_ID());
// Name,Description, SMTPHost,RequestEMail,RequestUser, RequestUserPw
Env.setContext(newCtx, "name", client.getName());
Env.setContext(newCtx, "description", client.getDescription());
// AD_Language
if (newCtx.getProperty("#AD_Language") == null && client.getAD_Language() != null)
Env.setContext(newCtx, "#AD_Language", client.getAD_Language());
// DocumentDir
String docDir = client.getDocumentDir();
Env.setContext(newCtx, CTX_DOCUMENT_DIR, docDir == null ? "" : docDir);
// Default Language
if (newCtx.getProperty("#AD_Language") == null)
Env.setContext(newCtx, "#AD_Language", "en_US");
// Save Context - Key is AD_Client_ID
s_cacheCtx.put(key, newCtx);
}
// return new Properties (pp); seems not to work with JSP
Enumeration<?> e = newCtx.keys();
while (e.hasMoreElements())
{
String pKey = (String)e.nextElement();
ctx.setProperty(pKey, newCtx.getProperty(pKey));
}
return ctx;
} // getDefaults
/**************************************************************************
* Set Language from request or session in.
* - Properties
* - Cookie
* - Session
* @param request request
*/
private void setLanguage (HttpServletRequest request)
{
// Get Cookie
Properties cProp = WebUtil.getCookieProprties(request);
// Get/set Parameter: Language
String AD_Language = WebUtil.getParameter (request, Env.LANGUAGE);
if (AD_Language == null)
{
// Check Cookie
AD_Language = cProp.getProperty(Env.LANGUAGE);
if (AD_Language == null)
{
// Check Request Locale
Locale locale = request.getLocale();
AD_Language = Language.getAD_Language (locale);
}
}
if (AD_Language != null)
{
Language lang = Language.getLanguage(AD_Language);
Env.verifyLanguage (ctx, lang);
Env.setContext(ctx, Env.LANGUAGE, lang.getAD_Language());
Msg.getMsg(ctx, "0");
cProp.setProperty(Env.LANGUAGE, lang.getAD_Language());
setLanguage(lang);
}
else if (language == null) // set base language
setLanguage (Language.getBaseLanguage());
} // setLanguage
/**
* Set Language and init formats
* @param lang language
*/
private void setLanguage (Language lang)
{
language = lang;
//
dateFormat = DisplayType.getDateFormat(DisplayType.Date, language);
dateTimeFormat = DisplayType.getDateFormat(DisplayType.DateTime, language);
//
amountFormat = DisplayType.getNumberFormat(DisplayType.Amount, language);
integerFormat = DisplayType.getNumberFormat(DisplayType.Integer, language);
numberFormat = DisplayType.getNumberFormat(DisplayType.Number, language);
quantityFormat = DisplayType.getNumberFormat(DisplayType.Quantity, language);
} // setLanguage
/**
* String representation
* @return Session + count
*/
public String toString ()
{
return "WSessionCtx#" + counter;
} // toString
} // WSessionCtx

View File

@ -40,34 +40,24 @@ import java.util.logging.Level;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.ecs.AlignType;
import org.apache.ecs.xhtml.a;
import org.apache.ecs.xhtml.body;
import org.apache.ecs.xhtml.br;
import org.apache.ecs.xhtml.hr;
import org.apache.ecs.xhtml.input;
import org.apache.ecs.xhtml.label;
import org.apache.ecs.xhtml.option;
import org.apache.ecs.xhtml.p;
import org.apache.ecs.xhtml.script;
import org.apache.ecs.xhtml.small;
import org.apache.ecs.xhtml.td;
import org.apache.ecs.xhtml.tr;
import org.compiere.model.MAttachment;
import org.compiere.model.MAttachmentEntry;
import org.compiere.model.MMailMsg;
import org.compiere.model.MRequest;
import org.compiere.model.MStore;
import org.compiere.model.MUserMail;
/**
* Servlet Utilities
@ -80,76 +70,7 @@ public final class WebUtil
/** Static Logger */
private static CLogger log = CLogger.getCLogger (WebUtil.class);
/**
* Create Timeout Message
*
* @param request request
* @param response response
* @param servlet servlet
* @param message - optional message
* @throws ServletException
* @throws IOException
*/
public static void createTimeoutPage (HttpServletRequest request, HttpServletResponse response,
HttpServlet servlet, String message) throws ServletException, IOException
{
log.info(message);
WebSessionCtx wsc = WebSessionCtx.get(request);
String windowTitle = "Timeout";
if (wsc != null)
windowTitle = Msg.getMsg(wsc.ctx, "Timeout");
WebDoc doc = WebDoc.create (windowTitle);
// Body
body body = doc.getBody();
// optional message
if (message != null && message.length() > 0)
body.addElement(new p(message, AlignType.CENTER));
// login button
body.addElement(getLoginButton(wsc == null ? null : wsc.ctx));
//
body.addElement(new hr());
body.addElement(new small(servlet.getClass().getName()));
// fini
createResponse (request, response, servlet, null, doc, false);
} // createTimeoutPage
/**
* Create Error Message
*
* @param request request
* @param response response
* @param servlet servlet
* @param message message
* @throws ServletException
* @throws IOException
*/
public static void createErrorPage (HttpServletRequest request, HttpServletResponse response,
HttpServlet servlet, String message)
throws ServletException, IOException
{
log.info( message);
WebSessionCtx wsc = WebSessionCtx.get(request);
String windowTitle = "Error";
if (wsc != null)
windowTitle = Msg.getMsg(wsc.ctx, "Error");
if (message != null)
windowTitle += ": " + message;
WebDoc doc = WebDoc.create (windowTitle);
// Body
body b = doc.getBody();
b.addElement(new p(servlet.getServletName(), AlignType.CENTER));
b.addElement(new br());
// fini
createResponse (request, response, servlet, null, doc, false);
} // createErrorPage
/**
* Create Exit Page "Log-off".
@ -504,28 +425,7 @@ public final class WebUtil
return null;
return value;
} // getParamOrNull
/**
* reload
* @param logMessage
* @param jsp
* @param session
* @param request
* @param response
* @param thisContext
* @throws ServletException
* @throws IOException
*/
public static void reload(String logMessage, String jsp, HttpSession session, HttpServletRequest request, HttpServletResponse response, ServletContext thisContext)
throws ServletException, IOException
{
session.setAttribute(WebSessionCtx.HDR_MESSAGE, logMessage);
log.warning(" - " + logMessage + " - update not confirmed");
thisContext.getRequestDispatcher(jsp).forward(request, response);
}
/**************************************************************************
* Create Standard Response Header with optional Cookie and print document.
* D:\j2sdk1.4.0\docs\guide\intl\encoding.doc.html
@ -1044,77 +944,6 @@ public final class WebUtil
response.addCookie(cookie);
} // deleteCookieWebUser
/**************************************************************************
* Send EMail
* @param request request
* @param to web user
* @param msgType see MMailMsg.MAILMSGTYPE_*
* @param parameter object array with parameters
* @return mail EMail.SENT_OK or error message
*/
public static String sendEMail (HttpServletRequest request, WebUser to,
String msgType, Object[] parameter)
{
WebSessionCtx wsc = WebSessionCtx.get(request);
MStore wStore = wsc.wstore;
MMailMsg mailMsg = wStore.getMailMsg(msgType);
//
StringBuilder subject = new StringBuilder(mailMsg.getSubject());
if (parameter.length > 0 && parameter[0] != null)
subject.append(parameter[0]);
//
StringBuilder message = new StringBuilder();
String hdr = wStore.getEMailFooter();
if (hdr != null && hdr.length() > 0)
message.append(hdr).append("\n");
message.append(mailMsg.getMessage());
if (parameter.length > 1 && parameter[1] != null)
message.append(parameter[1]);
if (mailMsg.getMessage2() != null)
{
message.append("\n")
.append(mailMsg.getMessage2());
if (parameter.length > 2 && parameter[2] != null)
message.append(parameter[2]);
}
if (mailMsg.getMessage3() != null)
{
message.append("\n")
.append(mailMsg.getMessage3());
if (parameter.length > 3 && parameter[3] != null)
message.append(parameter[3]);
}
message.append(MRequest.SEPARATOR)
.append("http://").append(request.getServerName()).append(request.getContextPath())
.append("/ - ").append(wStore.getName())
.append("\n").append("Request from: ").append(getFrom(request))
.append("\n");
String ftr = wStore.getEMailFooter();
if (ftr != null && ftr.length() > 0)
message.append(ftr);
// Create Mail
EMail email = wStore.createEMail(to.getEmail(),
subject.toString(), message.toString());
// CC Order
if (msgType.equals(MMailMsg.MAILMSGTYPE_OrderAcknowledgement))
{
String orderEMail = wStore.getWebOrderEMail();
String storeEMail = wStore.getWStoreEMail();
if (orderEMail != null && orderEMail.length() > 0
&& !orderEMail.equals(storeEMail)) // already Bcc
email.addBcc(orderEMail);
}
// Send
String retValue = email.send();
// Log
MUserMail um = new MUserMail(mailMsg, to.getAD_User_ID(), email);
um.saveEx();
//
return retValue;
} // sendEMail
/**
* Get Remote From info
* @param request request
@ -1147,26 +976,6 @@ public final class WebUtil
}
} // setCookieWebUser
/**
* Resend Validation Code
* @param request request
* @param wu user
*/
public static void resendCode(HttpServletRequest request, WebUser wu)
{
String msg = sendEMail(request, wu,
MMailMsg.MAILMSGTYPE_UserVerification,
new Object[]{
request.getServerName(),
wu.getName(),
wu.getEMailVerifyCode()});
if (EMail.SENT_OK.equals(msg))
wu.setPasswordMessage ("EMail sent");
else
wu.setPasswordMessage ("Problem sending EMail: " + msg);
} // resendCode
/**
* Update Web User
* @param request request

View File

@ -26,11 +26,6 @@
id="org.adempiere.ui.zk.feature"
version="0.0.0"/>
<includes
id="org.adempiere.webstore.feature"
version="0.0.0"
optional="true"/>
<includes
id="org.idempiere.felix.webconsole.feature"
version="0.0.0"/>

View File

@ -421,9 +421,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -422,9 +422,6 @@
<setEntry value="org.adempiere.server@default:true"/>
<setEntry value="org.adempiere.ui.zk@default:true"/>
<setEntry value="org.adempiere.ui@default:default"/>
<setEntry value="org.adempiere.webstore.resource@default:false"/>
<setEntry value="org.adempiere.webstore.servlet@default:false"/>
<setEntry value="org.adempiere.webstore@default:default"/>
<setEntry value="org.apache.ecs@default:default"/>
<setEntry value="org.compiere.db.oracle.provider@default:default"/>
<setEntry value="org.compiere.db.postgresql.provider@default:default"/>

View File

@ -60,7 +60,6 @@ import org.compiere.Adempiere;
import org.compiere.model.AdempiereProcessorLog;
import org.compiere.model.MClient;
import org.compiere.model.MSession;
import org.compiere.model.MStore;
import org.compiere.model.MSysConfig;
import org.compiere.model.MSystem;
import org.compiere.model.Query;
@ -1184,24 +1183,6 @@ public class AdempiereMonitor extends HttpServlet
table.addElement(line);
//
line = new tr();
MStore[] wstores = MStore.getActive();
line.addElement(new th().addElement("Active Web Stores #" + wstores.length));
p = new p();
for (int i = 0; i < wstores.length; i++)
{
MStore store = wstores[i];
if (i > 0)
p.addElement(" - ");
a a = new a(store.getWebContext(), store.getName());
a.setTarget("t" + i);
p.addElement(a);
}
if (wstores.length == 0)
p.addElement("&nbsp;");
line.addElement(new td().addElement(p));
table.addElement(line);
//
line = new tr();
List<MSession> sessions = new Query(Env.getCtx(), MSession.Table_Name, "Processed = 'N'", null).list();
line.addElement(new th().addElement("Active sessions #" + sessions.size()));
p = new p();

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.adempiere.webstore-feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>

View File

@ -1,2 +0,0 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@ -1,4 +0,0 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -1 +0,0 @@
bin.includes = feature.xml

View File

@ -1,47 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.adempiere.webstore.feature"
label="Webstore-feature"
version="7.1.0.qualifier"
provider-name="iDempiere Community">
<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>
<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>
<license url="http://www.example.com/license">
[Enter License Description here.]
</license>
<requires>
<import feature="org.adempiere.base.feature" version="0.0.0"/>
<import plugin="org.adempiere.report.jasper.webapp" version="0.0.0"/>
<import plugin="org.mortbay.jasper.apache-jsp"/>
<import plugin="org.apache.taglibs.taglibs-standard-spec"/>
</requires>
<plugin
id="org.adempiere.webstore"
download-size="0"
install-size="0"
version="0.0.0"/>
<plugin
id="org.adempiere.webstore.resource"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"/>
<plugin
id="org.adempiere.webstore.servlet"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"/>
</feature>

View File

@ -1,12 +0,0 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.idempiere</groupId>
<artifactId>org.idempiere.parent</artifactId>
<version>7.1.0-SNAPSHOT</version>
<relativePath>../org.idempiere.parent/pom.xml</relativePath>
</parent>
<artifactId>org.adempiere.webstore.feature</artifactId>
<packaging>eclipse-feature</packaging>
</project>

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -1,34 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.adempiere.webstore.resource</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -1,2 +0,0 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@ -1,8 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.release=enabled

View File

@ -1,4 +0,0 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

View File

@ -1,4 +0,0 @@
#Thu Dec 23 08:01:11 MYT 2010
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,13 +0,0 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: iDempiere Web Store Resources
Bundle-SymbolicName: org.adempiere.webstore.resource
Bundle-Version: 7.1.0.qualifier
Bundle-Vendor: Adempiere.org
Fragment-Host: org.adempiere.webstore;bundle-version="0.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version>=11))"
Import-Package: org.compiere.wstore
Jetty-WarPatchFragmentFolderPath: /
Bundle-ClassPath: .
Automatic-Module-Name: org.adempiere.webstore.resource

View File

@ -1,83 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: addressInfo.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Address Info
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Address Info</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Address</h1>
<h3>Please confirm your address:</h3>
<form action="loginServlet" method="post" enctype="application/x-www-form-urlencoded" name="addressForm" id="address"
onSubmit="checkForm(this, new Array ('Name','Address'));">
<fieldset>
<legend>Address on File</legend>
<input name="Mode" type="hidden" value="Submit"/>
<label id="LBL_Name" for="Name">Name</label>
<input class="mandatory" size="40" id="ID_Name" value='<c:out value="${webUser.name}"/>' name="Name" maxlength="60" type="text"/>
<br/>
<label id="LBL_Company" for="Company">Company</label>
<input size="40" id="ID_Company" value='<c:out value="${webUser.company}"/>' name="Company" maxlength="60" type="text"/>
<br/>
<label id="LBL_Title" for="Title">Title</label>
<input size="40" id="ID_Title" value='<c:out value="${webUser.title}"/>' name="Title" maxlength="60" type="text"/>
<br/>
<label id="LBL_Address" for="Address">Address</label>
<input class="mandatory" size="40" id="ID_Address" value='<c:out value="${webUser.address}"/>' name="Address" maxlength="60" type="text"/>
<br/>
<label id="LBL_Address2" for="Address">Address2</label>
<input size="40" id="ID_Address2" value='<c:out value="${webUser.address2}"/>' name="Address2" maxlength="60" type="text"/>
<br/>
<cws:location countryID="${webUser.countryID}" regionID="${webUser.regionID}" regionName="${webUser.regionName}" city="${webUser.city}" postal="${webUser.postal}" />
<label id="LBL_Phone" for="Phone">Phone</label>
<input size="20" id="ID_Phone" value='<c:out value="${webUser.phone}"/>' name="Phone" maxlength="20" type="text"/>
<br/>
<label id="LBL_Fax" for="Fax">Fax</label>
<input size="20" id="ID_Fax" value='<c:out value="${webUser.fax}"/>' name="Fax" maxlength="20" type="text"/>
<br/>
<div class="buttons">
<input type="reset" name="Reset" value="Reset">
<input name="AddressConfirm" type="hidden" id="AddressConfirm" value="Y">
<input type="submit" name="Submit" id="Submit" value="Submit Info">
</div>
<c:if test="${not empty webUser.saveErrorMessage}">
<div class="error"><c:out value="${webUser.saveErrorMessage}"/></div>
</c:if>
<div id="processingDiv" style="display:none"><strong>Processing ...</strong></div>
<!--
<div id="submitDiv" style="display:inline">
<input type="submit" name="Submit" id="Submit" value="Submit Info">
</div>
-->
<div align="center">Enter all <b class="mandatory">mandatory</b> data. </div>
</fieldset>
</form>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,94 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=advertisements.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: advertisements.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Advertisements
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Advertisements</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Advertisements</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<table class="adTable">
<c:forEach items='${info.advertisements}' var='ad'>
<tr>
<td colspan="2">
<a href="http://www.idempiere.com/wstore/click?<c:out value='${ad.clickTargetURL}'/>" target="_blank">
<img src="<c:out value='${ad.imageURL}'/>" alt="<c:out value='${ad.name}'/>" border="0" align="left"></a>
<img src="<c:out value='${ad.webParam2}'/>" alt="<c:out value='${ad.webParam1}'/>" border="0" align="right">
&nbsp; <b><c:out value='${ad.description}'/></b>
<br>
&nbsp; <a href="request.jsp?SalesRep_ID=<c:out value='${ad.salesRep_ID}'/>">Contact</a>
<br>
&nbsp; <a href="basketServlet?M_Product_ID=1000018&SalesRep_ID=<c:out value='${ad.salesRep_ID}'/>">Buy Next Step</a>
<br>
&nbsp; <i><c:out value='${ad.webParam3}' escapeXml='false'/></i>
<p><c:out value='${ad.adText}' escapeXml='false'/></p>
<p><c:out value='${ad.webParam4}' escapeXml='false'/></p>
</th>
</tr>
<form action="advertisementServlet" method="post" enctype="application/x-www-form-urlencoded" name="advertisement" target="_top" id="advertisement">
<tr>
<th>Name</th>
<td><input name="Name" type="text" value="<c:out value='${ad.name}'/>" size="40" maxlength="40" /></td>
</tr>
<tr>
<th>Description</th>
<td><input name="Description" type="text" value="<c:out value='${ad.description}'/>" size="60" maxlength="60" /></td>
</tr>
<tr>
<th>Image URL</th>
<td><input name="ImageURL" type="text" value="<c:out value='${ad.imageURL}'/>" size="60"></td>
</tr>
<tr>
<th>Text</th>
<td><textarea name="AdText" cols="80" rows="8" id="AdText"><c:out value='${ad.adText}'/></textarea>
</td>
</tr>
<tr>
<th>Click Target</th>
<td><input name="ClickTargetURL" type="text" value="<c:out value='${ad.clickTargetURL}'/>" size="60"></td>
</tr>
<tr>
<th>&nbsp;</th>
<td>
<input name="W_Advertisement_ID" type="hidden" id="W_Advertisement_ID" value="<c:out value='${ad.w_Advertisement_ID}'/>">
<input type="submit" name="Submit" value="Submit">
<input name="Reset" type="reset" id="Reset" value="Reset">
</td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
</form>
<c:forEach items='${pair}' var='ad.clickCountWeek'>
<tr>
<th><c:out value='${pair.key}'/></th>
<td><c:out value='${pair.name}'/></td>
</tr>
</c:forEach>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,63 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: allAds.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Advertisements
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - All Ads</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Partner Info</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<p>Please check with our partners:</p>
<!-- Start Copy HERE -->
<p>
<c:forEach items='${info.allAds}' var='ad'>
<c:out value='${ad.description}'/>:
<a href="#<c:out value='${ad.salesRep_ID}'/>">
<c:out value='${ad.name}'/>
</a>
<br>
</c:forEach>
</p>
<p>&nbsp;</p>
<!-- Start Ads HERE -->
<table class="adTable">
<c:forEach items='${info.allAds}' var='ad'>
<tr>
<td>
<a name="<c:out value='${ad.salesRep_ID}'/>"></a>
<a href="http://www.adempiere.com/wstore/click?<c:out value='${ad.clickTargetURL}'/>" target="_blank">
<img src="<c:out value='${ad.imageURL}'/>" alt="<c:out value='${ad.name}'/>" border="0" align="left" /></a>
<img src="<c:out value='${ad.webParam2}'/>" alt="<c:out value='${ad.webParam1}'/>" border="0" align="right" />
&nbsp; <b><c:out value='${ad.description}'/></b>
<br>
&nbsp; <a href="http://www.adempiere.com/wstore/request.jsp?SalesRep_ID=<c:out value='${ad.salesRep_ID}'/>">Contact</a>
<br>
&nbsp; <a href="http://www.adempiere.com/wstore/basketServlet?M_Product_ID=1000018&SalesRep_ID=<c:out value='${ad.salesRep_ID}'/>">Buy Next Step</a>
<br>
&nbsp; <i><c:out value='${ad.webParam3}' escapeXml='false'/></i>
<p><c:out value='${ad.adText}' escapeXml='false'/></p>
<p><c:out value='${ad.webParam4}' escapeXml='false'/></p>
</td>
</tr>
</c:forEach>
</table>
<!-- End Copy HERE -->
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

View File

@ -1,113 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=assets.jsp'/>
</c:if>
<%--<c:if test='${not webUser.EMailVerified}'>--%>
<%--<c:redirect url="emailVerify.jsp">--%>
<%--<c:param name="ForwardTo" value="assets.jsp"/>--%>
<%--<c:param name="Reason" value="'My Assets' can not be accessed until email verification has been completed."/>--%>
<%--</c:redirect>--%>
<%--<c:redirect url='emailVerify.jsp?ForwardTo=assets.jsp'/>--%>
<%--</c:if>--%>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: assets.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Assets
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Assets</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Assets</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<c:if test='${not webUser.EMailVerified}'>
<form action="emailServlet" method="post" enctype="application/x-www-form-urlencoded"
name="EMailVerification" target="_top">
<input name="AD_Client_ID" type="hidden" value='<c:out value="${initParam['#AD_Client_ID']}" default="0"/>'/>
<input name="Source" type="hidden" value=""/>
<input name="Info" type="hidden" value=""/>
<input name="ForwardTo" type="hidden" value="assets.jsp">
<script language="Javascript">
document.EMailVerification.Source.value=document.referrer;
document.EMailVerification.Info.value=document.lastModified;
</script>
<p><b>To access your Assets:</b></p>
<p>Enter Verification Code
<input name="VerifyCode" type="text" id="VerifyCode" value="<Check EMail>">
<input type="submit" name="Submit" value="Submit">
</p>
<p>The Verification Code will be sent to <b><c:out value='${webUser.email}'/></b> &nbsp;
<input type="submit" name="ReSend" id="ReSend" value="Send Verification Code">
</p>
<p><c:out value="${webUser.passwordMessage}"/></p>
</form>
</c:if>
<table class="contentTable">
<tr>
<th>Name</th>
<th>Description</th>
<th class="nobr">Guarantee Date</th>
<th>Quantity</th>
<th class="nobr">Your Version</th>
<th class="nobr">Serial #</th>
<th>Delivery</th>
<th>Download</th>
</tr>
<c:forEach items='${info.assets}' var='asset' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><c:out value='${asset.name}'/></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${asset.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><fmt:formatDate value='${asset.guaranteeDate}'/></td>
<td class="<c:out value='${rowClass}' /> quantity"><c:out value='${asset.qty}'/></td>
<td class="<c:out value='${rowClass}' /> numeric"><c:out value='${asset.versionNo}'/></td>
<td class="<c:out value='${rowClass}' /> numeric"><c:out value='${asset.serNo}'/></td>
<td class="<c:out value='${rowClass}' />">
<c:forEach items='${asset.downloadNames}' var='addlDL'>
<c:out value='${addlDL}'/><br>
</c:forEach>&nbsp;
</td>
<td class="<c:out value='${rowClass}' />">
<c:if test='${asset.downloadable}'>
<c:forEach items='${asset.downloadURLs}' var='addlDL'>
<a href="<c:out value='http://${ctx.context}/'/>assetServlet/<c:out value='${addlDL}'/>.zip?Asset_ID=<c:out value='${asset.a_Asset_ID}'/>&PD=<c:out value='${addlDL}'/>" target="_blank">
<img src="assetDownload.gif" alt="Download <c:out value='${addlDL}'/>" width="24" height="24" border="0" /></a><br>
</c:forEach>
</c:if>
<c:if test='${not asset.downloadable}'>
n/a
</c:if>
&nbsp;
</td>
</tr>
</c:forEach>
</table>
<c:if test='${webUser.creditCritical}'>
<p><strong><font color="#990000">! <c:out value='${webUser.SOCreditStatus}'/> !</font></strong></p>
</c:if>
<p>To download, click on the link - or right-click and &quot;Save Target As
...&quot;</p>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

View File

@ -1,72 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: basket.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Basket
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Basket</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Web Basket</h1>
<c:if test='${empty webBasket}'>
<p>Empty Basket (timeout) - Please go back, refresh the page and add products
again.</p>
</c:if> <c:if test='${not empty webBasket}'>
<form action="basketServlet" method="post" enctype="application/x-www-form-urlencoded" name="basket" id="basket" >
<table class="contentTable">
<tr>
<th>Product</th>
<th>Price</th>
<th>Quantity</th>
<th><c:out value='${priceList.currency}'/> Total</th>
<th>&nbsp;</th>
</tr>
<c:forEach items='${webBasket.lines}' var='line' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose> <tr>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.name}'/></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${line.price}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' /> quantity"><fmt:formatNumber value='${line.quantity}'/></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${line.total}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' />"><input type="submit" name="Delete_<c:out value='${line.line}'/>" value="Delete"></td>
</tr>
</c:forEach>
<tr>
<th><c:out value='${webBasket.lineCount}'/></th>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>
<div class="amount"><c:out value='${priceList.currency}'/> <fmt:formatNumber value='${webBasket.total}' type="currency" currencySymbol=""/></div></th>
<th><input type="button" name="Checkout" id="Checkout" value="Create Secure Order"
onClick="window.top.location.replace('./checkOutServlet');">
<!-- removed by request of BBB
&nbsp; <input name="CheckoutUnsecure" id="CheckoutUnsecure" value="Create Order"
onClick="window.top.location.replace('checkOutServlet');" type="button"> -->
</th>
</tr>
</table>
</form>
</c:if> <p>
<input name="Back" type="button" id="Back" value="Back to Web Store" onClick="window.top.location.replace('index.jsp');">
</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -1,11 +0,0 @@
bin.includes = META-INF/,\
.,\
*.*
bin.excludes = src/**,\
bin/**,\
.settings/**,\
.classpath,\
.project,\
build.properties
output.. = target/classes/
source.. = src/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,56 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=invoices.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: commissionRuns.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Invoices
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Commissions</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Commissions</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<table class="contentTable">
<tr>
<th>Document No</th>
<th>Description</th>
<th>Start Date</th>
<th>Grand Total</th>
</tr>
<c:forEach items='${info.commissionRuns}' var='commissionRun' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><a href="comissionAmts.jsp?C_CommissionRun_ID=<c:out value='${commissionRun.c_CommissionRun_ID}'/>"><c:out value='${commissionRun.documentNo}'/></a></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${commissionRun.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><fmt:formatDate value='${commissionRun.startDate}'/></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${commissionRun.grandTotal}' type="currency" currencySymbol=""/></td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,63 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=invoices.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: commissionedInvoices.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Invoices
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Commissioned Invoices</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Commissioned Invoices</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<table class="contentTable">
<tr>
<th>Document No</th>
<th>Description</th>
<th>Date</th>
<th>Total Lines</th>
<th>Grand Total</th>
<th>Image</th>
<th>Open</th>
</tr>
<c:forEach items='${info.commissionedInvoices}' var='invoice' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><a href="invoiceLines.jsp?C_Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>"><c:out value='${invoice.documentNo}'/></a></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${invoice.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><fmt:formatDate value='${invoice.dateInvoiced}'/></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${invoice.totalLines}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' /> amount"><c:out value='${invoice.currencyISO}'/>&nbsp;<fmt:formatNumber value='${invoice.grandTotal}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' />"><a href="invoiceServlet/I_<c:out value='${invoice.documentNo}'/>.pdf?Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>" target="_blank"><img src="pdf.gif" alt="Get Invoice Image" width="30" height="30" border="0" /></a></td>
<td class="<c:out value='${rowClass}' />"><c:if test='${not invoice.paid}'><b>Not </b></c:if>Paid</td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,99 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: confirm.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Confirmation
- webOrder, webUser, payment
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Payment Confirmation</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Thanks - Payment Confirmation</h1>
<table class="contentTable">
<tr>
<th>Payment</th>
<th>Invoice</th>
<th>Details</th>
<th>Total</th>
</tr>
<tr>
<td class="oddRow"><c:out value='${payment.documentNo}'/></td>
<td class="oddRow">
<c:choose>
<c:when test='${not empty webOrder}'>
<a href="invoiceServlet/I_<c:out value='${webOrder.invoiceInfo}'/>.pdf?Invoice_ID=<c:out value='${webOrder.invoice_ID}'/>" target="_blank"><img src="pdf.gif" alt="Get Invoice PDF" width="30" height="30" border="0" align="right" /></a>
<c:out value='${webOrder.invoiceInfo}'/>
</c:when>
<c:otherwise>
&nbsp;
</c:otherwise>
</c:choose>
</td>
<td class="oddRow"><c:out value='${payment.r_AuthCode}'/></td>
<td class="oddRow amount"><c:out value='${payment.currencyISO}'/>&nbsp;<fmt:formatNumber value='${payment.payAmt}' type="currency" currencySymbol=""/></td>
</tr>
</table>
<form action="assets.jsp" method="post" enctype="application/x-www-form-urlencoded" name="confirm" id="confirm">
For downloads, please check &nbsp;
<input type="submit" name="Submit" value="My Assets">
&nbsp; for documentation and other information.
</form>
<!-- Remove Info -->
<c:remove var='payment' />
<c:remove var='webOrder' />
<br/><br/>
<table class="contentTable">
<tr>
<th>Interest Area</th>
<th>Description</th>
<th align="right">Subscription</th>
</tr>
<c:forEach items='${info.interests}' var='interest' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><c:out value='${interest.name}'/></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${interest.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />">
<c:choose>
<c:when test='${interest.subscribed}'>
<fmt:formatDate value='${interest.subscribeDate}'/>&nbsp;
<input type="button" name="UnSubscribe_<c:out value='${interest.r_InterestArea_ID}'/>" value="Un-Subscribe"
onClick="window.top.location.replace('infoServlet?mode=unsubscribe&area=<c:out value='${interest.r_InterestArea_ID}'/>&contact=<c:out value='${info.user_ID}'/>');" >
</c:when>
<c:otherwise>
<input type="button" name="Subscribe_<c:out value='${interest.r_InterestArea_ID}'/>" value="Subscribe"
onClick="window.top.location.replace('infoServlet?mode=subscribe&area=<c:out value='${interest.r_InterestArea_ID}'/>&contact=<c:out value='${info.user_ID}'/>');" >
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,46 +0,0 @@
<html>
<head>
<title>Adempiere Web Store Custimize</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>Custimize your Web Store</h1>
<p><font size="1">$Id: customize.html,v 1.1 2006/04/21 18:07:56 jjanke Exp $
</font></p>
<p>This application creates the web store for AD_Client_ID=11 (GardenWorld)
</p>
<p>For your own application, you need to
</p>
<ul>
<li>Log in as Client Administrator
<ul>
<li>In window Client, change the web directory, e.g. to xxx</li>
<li>Click on the right bottom corner of the window to get your AD_Client_ID, e.g. 1000000
</li>
</ul>
</li>
<li> Unjar adempiereWebStore.war
</li>
<li> In the WEB_INF directory
<ul>
<li> Edit web.xml to and change the AD_Client_ID parameter value to your AD_Client_ID, e.g. 1000000</li>
<li> Edit jboss-web.xml and set the context to your web directory, e.g. xxx
</li>
</ul>
</li>
<li>Change the UI of the *.html and *.jsp files as required</li>
<li> Repackage it under another name, e.g. myStore.war before copying it to
$IDEMPIERE_HOME/jboss/server/adempiere/deploy
</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

View File

@ -1,72 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=emailVerify.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: emailVerify.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Assets
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Verify EMail</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Verify Your EMail Address</h1>
<c:if test='${not empty param.Reason}'>
<div class="error">
<c:out value='${param.Reason}'/>
</div>
</c:if>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<c:if test='${not webUser.EMailVerified}'>
<form action="emailServlet" method="post" enctype="application/x-www-form-urlencoded"
name="EMailVerification" target="_top">
<input name="AD_Client_ID" type="hidden" value='<c:out value="${initParam['#AD_Client_ID']}" default="0"/>'/>
<input name="Source" type="hidden" value=""/>
<input name="Info" type="hidden" value=""/>
<c:choose>
<c:when test="${empty param.ForwardTo}">
<input name="ForwardTo" type="hidden" value="emailVerify.jsp">
</c:when>
<c:otherwise>
<input name="ForwardTo" type="hidden" value="${param.ForwardTo}">
</c:otherwise>
</c:choose>
<script language="Javascript">
document.EMailVerification.Source.value=document.referrer;
document.EMailVerification.Info.value=document.lastModified;
</script>
<p>Enter Verification Code
<input name="VerifyCode" type="text" id="VerifyCode" value="<Check EMail>">
<input type="submit" name="Submit" value="Submit">
</p>
<p>The Verification Code will be sent to <b><c:out value='${webUser.email}'/></b> &nbsp;
<input type="submit" name="ReSend" id="ReSend" value="Send Verification Code">
</p>
<p><c:out value="${webUser.passwordMessage}"/></p>
</form>
</c:if>
<c:if test='${webUser.EMailVerified}'>
<p>
Thank you - your email address <b><c:out value='${webUser.email}'/></b> was verified.
</p>
</c:if>
<c:if test='${webUser.creditCritical}'>
<p><strong><font color="#990000">! <c:out value='${webUser.SOCreditStatus}'/> !</font></strong></p>
</c:if>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,33 +0,0 @@
<%@ page isErrorPage="true" %>
<html>
<head>
<title>Adempiere Error</title>
<link href="standard.css" rel="stylesheet" type="text/css"/>
</head>
<body><div id="page">
<h1>Adempiere System Error</h1>
<p>Sorry, an error occured. If the error persists, please inform us.</p>
<p>Error Message:</p>
<pre><font color="red">
<%= exception.getMessage() %>
</font></pre>
<h2>Stack Trace:</h2>
<%
java.lang.Throwable ex = exception;
while (ex != null)
{
out.println("<h3>" + ex.toString() + "</h3>");
java.io.CharArrayWriter cw = new java.io.CharArrayWriter();
java.io.PrintWriter pw = new java.io.PrintWriter(cw,true);
ex.printStackTrace (pw);
out.println("<pre><font color=\"red\">");
out.println(cw.toString());
out.println("</font></pre>");
if (ex.equals(exception.getCause())) // prevent infinite loop
break;
ex = exception.getCause();
}
%>
<br>
</div></body>
</html>

View File

@ -1,319 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=expenses.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id$
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2004 Jorg Janke
- - -
- Web Store Expenses
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Expense</title>
<script type="text/javascript">
function cancelExpense()
{
window.location="expenses.jsp";
}
function updateClientList()
{
/**
* call searchServlet
* param: get = 'clientList'
*
* get back:
* <clients>
* <client id='0'>ANY</client>
* <client id='1'>GardenWorld</client>
* <client id='2'>ComPiere, Inc.</client>
* </clients>
*/
var params = new Array();
params['get']='clientList';
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateClientListCallback, null, "GET", params);
}
function updateClientListCallback()
{
updateSelect(this, "clients", "ID_C_Client_ID");
updateOrgList();
}
addOnLoadListener(updateClientList);
function updatePartnerList()
{
/**
* call searchServlet
* param: get = 'partnerList'
*
* get back:
* <partners>
* <partner id='0'>ANY</partner>
* <partner id='1'>Joe Block</partner>
* </partners>
*/
var params = new Array();
params['get']='partnerList';
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updatePartnerListCallback, null, "GET", params);
}
function updatePartnerListCallback()
{
updateSelect(this, "partners", "ID_C_Partner_ID");
}
addOnLoadListener(updatePartnerList);
function updateOrgList()
{
var clientSelect = document.getElementById('ID_C_Client_ID');
var clientOption = clientSelect.options[clientSelect.selectedIndex];
var clientId = clientOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'orgList'
* param: clientID = '123'
*
* get back:
* <orgs clientID='123'>
* <org id='0'>ANY</client>
* <org id='1'>HQ</org>
* <org id='2'>Sales</org>
* <org id='3'>Support</org>
* </orgs>
*/
var params = new Array();
params['get']='orgList';
params['clientID']=clientId;
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateOrgListCallback, null, "GET", params);
}
function updateOrgListCallback()
{
updateSelect(this, "orgs", "ID_C_Organization_ID");
updateWarehouseList();
}
function updateWarehouseList()
{
var orgSelect = document.getElementById('ID_C_Organization_ID');
var orgOption = orgSelect.options[orgSelect.selectedIndex];
var orgId = orgOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'warehouseList'
*
* get back:
* <warehouses>
* <warehouse id='1'>HQ Warehouse</warehouse>
* <warehouse id='2'>Oregon Warehouse</warehouse>
* </warehouses>
*/
var params = new Array();
params['get']='warehouseList';
params['orgID']=orgId;
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateWarehouseListCallback, null, "GET", params);
}
function updateWarehouseListCallback()
{
updateSelect(this, "warehouses", "ID_C_Warehouse_ID");
}
function updatePriceList()
{
/**
* call searchServlet
* param: get = 'priceList'
*
* get back:
* <pricelists>
* <pricelist id='1'>Standard</pricelist>
* <pricelist id='2'>Summer Specials</pricelist>
* </pricelists>
*/
var params = new Array();
params['get']='priceList';
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updatePriceListCallback, null, "GET", params);
}
function updatePriceListCallback()
{
updateSelect(this, "pricelists", "ID_C_Pricelist_ID");
}
addOnLoadListener(updatePriceList);
</script>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<c:choose>
<c:when test="${not empty param.W_Expense_ID}">
<h1>My Expense: <c:out value='${param.W_Expense_ID}'/></h1>
</c:when>
<c:otherwise>
<h1>My Expense: New Expense</h1>
</c:otherwise>
</c:choose>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<form method="post" name="Expense" action="expenseServlet" enctype="application/x-www-form-urlencoded">
<input name="Source" type="hidden" value=""/>
<input name="Info" type="hidden" value=""/>
<script language="Javascript">
document.Request.Source.value=document.referrer;
document.Request.Info.value=document.lastModified;
</script>
<input name="W_Expense_ID" type="hidden" value="<c:out value='${param.W_Expense_ID}'/>" id="W_Expense_ID"/>
<input name="ForwardTo" type="hidden" value="<c:out value='${param.ForwardTo}'/>"/>
<c:if test='${not empty param.SalesRep_ID}'>
<input name="SalesRep_ID" type="hidden" value="<c:out value='${param.SalesRep_ID}'/>"/>
</c:if>
<c:if test='${empty param.SalesRep_ID}'>
<input name="SalesRep_ID" type="hidden" value="<c:out value='${webUser.salesRep_ID}'/>"/>
</c:if>
<table class="internalTable">
<tr>
<td class="lineItem">
<label>Client</label>
<select id="ID_C_Client_ID" name="ID_C_Client_ID" onchange="updateOrgList()">
</select>
<br/>
<label>Organization</label>
<select id="ID_C_Organization_ID" name="ID_C_Organization_ID" onchange="updateWarehouseList()">
</select>
<br/>
<label>Business Partner</label>
<select id="ID_C_Partner_ID" name="ID_C_Partner_ID">
</select>
<br/>
<label>Warehouse</label>
<select id="ID_C_Warehouse_ID" name="ID_C_Warehouse_ID">
<option>HQ Warehouse</option>
</select>
</td>
<td class="lineItem">
<label>Price List</label>
<select id="ID_C_Pricelist_ID" name="ID_C_Pricelist_ID">
<option>Standard</option>
</select>
<br/>
<label>Report Date</label>
<input type="text" size="8"/>
<img src="Calendar16.gif" border="0"/>
<br/>
<label>Approval Amount</label>
<input type="text" size="10"/>
<img src="Calculator16.gif" border="0"/>
<br/>
<label>Document Status</label>
<select>
<option>Drafted</option>
<option>Submitted</option>
<option>Approved</option>
</select>
</td>
</tr>
<tr>
<td class="lineItem">
<fieldset>
<legend>Description</legend>
<textarea cols="40" class="wideText"></textarea>
<div class="entryNote">Max 1500 Characters</div>
</fieldset>
</td>
<td class="lineItem">
<fieldset>
<legend>Note</legend>
<textarea cols="40" class="wideText"></textarea>
<div class="entryNote">Max 1500 Characters</div>
</fieldset>
</td>
</tr>
</table>
<br/>
<div class="buttons">
<input type="submit" name="Submit" value="Save Draft" />
<input type="submit" name="Submit" value="Complete" />
<input type="button" value="Cancel Draft" onclick="cancelExpense();"/>
<input type="reset"/>
</div>
</form>
<br/>
<table class="contentTable">
<tr>
<th>Line #</th>
<th>Product</th>
<th>Quantity</th>
<th>Description</th>
<th>Amount</th>
</tr>
<!-- TEST DATA START ******************************** -->
<tr>
<td class="oddRow"><a href="expenseLine.jsp?W_Expense_ID=<c:out value='${param.W_Expense_ID}'/>&W_ExpenseLine_ID=10">10</a></td>
<td class="oddRow">Mary Consultant</td>
<td class="oddRow amount">8</td>
<td class="oddRow">Feb 5,2003 10:00:00am PST 8h</td>
<td class="oddRow">850.00</td>
</tr>
<tr>
<td class="oddRow"><a href="expenseLine.jsp?W_Expense_ID=<c:out value='${param.W_Expense_ID}'/>&W_ExpenseLine_ID=10">20</a></td>
<td class="oddRow">Mary Consultant</td>
<td class="oddRow amount">8</td>
<td class="oddRow">Feb 6,2003 8:00:00am PST 8h</td>
<td class="oddRow">950.00</td>
</tr>
<!-- TEST DATA END ******************************** -->
<c:forEach items='${info.expense.lines}' var='line' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><a href="expenseLine.jsp?W_Expense_ID=<c:out value='${param.W_Expense_ID}'/>&W_ExpenseLine_ID=<c:out value='${line.line}'/>"><c:out value='${rowClass}' /></a>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.M_Product_ID}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' /> amount"><c:out value='${line.qtyInvoiced}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.dateExpense}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.invoicePrice}'/>&nbsp;</td>
</tr>
</c:forEach>
</table>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,366 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=expenseLine.jsp'/>
</c:if>
<c:if test='${empty param.W_Expense_ID}'>
<c:redirect url='expenses.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id$
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2004 Jorg Janke
- - -
- Web Store Expenses
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Expense</title>
<script type="text/javascript">
function cancelExpense()
{
window.location="expenses.jsp";
}
function updateClientList()
{
/**
* call searchServlet
* param: get = 'clientList'
*
* get back:
* <clients>
* <client id='0'>ANY</client>
* <client id='1'>GardenWorld</client>
* <client id='2'>ComPiere, Inc.</client>
* </clients>
*/
var params = new Array();
params['get']='clientList';
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateClientListCallback, null, "GET", params);
}
function updateClientListCallback()
{
updateSelect(this, "clients", "ID_C_Client_ID");
updateOrgList();
}
addOnLoadListener(updateClientList);
function updatePartnerList()
{
/**
* call searchServlet
* param: get = 'partnerList'
*
* get back:
* <partners>
* <partner id='0'>ANY</partner>
* <partner id='1'>Joe Block</partner>
* </partners>
*/
var params = new Array();
params['get']='partnerList';
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updatePartnerListCallback, null, "GET", params);
}
function updatePartnerListCallback()
{
updateSelect(this, "partners", "ID_C_Partner_ID");
}
addOnLoadListener(updatePartnerList);
function updateOrgList()
{
var clientSelect = document.getElementById('ID_C_Client_ID');
var clientOption = clientSelect.options[clientSelect.selectedIndex];
var clientId = clientOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'orgList'
* param: clientID = '123'
*
* get back:
* <orgs clientID='123'>
* <org id='0'>ANY</client>
* <org id='1'>HQ</org>
* <org id='2'>Sales</org>
* <org id='3'>Support</org>
* </orgs>
*/
var params = new Array();
params['get']='orgList';
params['clientID']=clientId;
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateOrgListCallback, null, "GET", params);
}
function updateOrgListCallback()
{
updateSelect(this, "orgs", "ID_C_Organization_ID");
}
function updateCampaignList()
{
/**
* call searchServlet
* param: get = 'campaignList'
*
* get back:
* <campaigns>
* <campaign id='0'>ANY</campaign>
* <campaign id='1'>Rose Festival</campaign>
* </campaigns>
*/
var params = new Array();
params['get']='campaignList';
var loader = new AJAX.AjaxLoader("searchServlet", updateCampaignListCallback, null, "GET", params);
}
function updateCampaignListCallback()
{
updateSelect(this, "campaigns", "ID_C_Campaign_ID");
}
addOnLoadListener(updateCampaignList);
function updateProjectList()
{
/**
* call searchServlet
* param: get = 'projectList'
*
* get back:
* <projects>
* <project id='0'>ANY</project>
* <project id='1'>Landscaping New Office</project>
* </projects>
*/
var params = new Array();
params['get']='projectList';
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateProjectListCallback, null, "GET", params);
}
function updateProjectListCallback()
{
updateSelect(this, "projects", "ID_C_Project_ID");
updatePhaseList();
}
addOnLoadListener(updateProjectList);
function updatePhaseList()
{
var projectSelect = document.getElementById('ID_C_Project_ID');
var projectOption = projectSelect.options[projectSelect.selectedIndex];
var projectID = projectOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'phaseList'
* param: projectID = '123'
*
* get back:
* <phases projectID='123'>
* <phase id='0'>ANY</phase>
* <phase id='1'>Planning</phase>
* </phases>
*/
var params = new Array();
params['get']='phaseList';
params['projectID']=projectID;
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updatePhaseListCallback, null, "GET", params);
}
function updatePhaseListCallback()
{
updateSelect(this, "phases", "ID_C_Phase_ID");
updateTaskList();
}
function updateTaskList()
{
var projectSelect = document.getElementById('ID_C_Project_ID');
var projectOption = projectSelect.options[projectSelect.selectedIndex];
var projectID = projectOption.attributes.getNamedItem('value').value;
var phaseSelect = document.getElementById('ID_C_Phase_ID');
var phaseOption = phaseSelect.options[phaseSelect.selectedIndex];
var phaseID = phaseOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'phaseList'
* param: projectID = '123'
* param: phaseID = '456'
*
* get back:
* <tasks projectID='123' phaseID='456'>
* <task id='0'>ANY</task>
* <task id='1'>Contact Owner</task>
* </tasks>
*/
var params = new Array();
params['get']='taskList';
params['projectID']=projectID;
params['phaseID']=phaseID;
params['W_Expense_ID']=queryString['W_Expense_ID'];
var loader = new AJAX.AjaxLoader("searchServlet", updateTaskListCallback, null, "GET", params);
}
function updateTaskListCallback()
{
updateSelect(this, "tasks", "ID_C_Task_ID");
}
</script>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<c:choose>
<c:when test="${not empty param.W_ExpenseLine_ID}">
<h1>My Expense: <c:out value='${param.W_Expense_ID}'/>, Line <c:out value='${param.W_ExpenseLine_ID}'/></h1>
</c:when>
<c:otherwise>
<h1>My Expense: New Expense Line</h1>
</c:otherwise>
</c:choose>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<form method="post" name="Expense" action="expenseServlet" enctype="application/x-www-form-urlencoded">
<input name="Source" type="hidden" value=""/>
<input name="Info" type="hidden" value=""/>
<script language="Javascript">
document.Request.Source.value=document.referrer;
document.Request.Info.value=document.lastModified;
</script>
<input name="ForwardTo" type="hidden" value="<c:out value='${param.ForwardTo}'/>"/>
<c:if test='${not empty param.SalesRep_ID}'>
<input name="SalesRep_ID" type="hidden" value="<c:out value='${param.SalesRep_ID}'/>"/>
</c:if>
<c:if test='${empty param.SalesRep_ID}'>
<input name="SalesRep_ID" type="hidden" value="<c:out value='${webUser.salesRep_ID}'/>"/>
</c:if>
<table class="internalTable">
<tr>
<td class="lineItem">
<fieldset>
<legend>Details</legend>
<label>Client</label>
<select id="ID_C_Client_ID" name="ID_C_Client_ID" onchange="updateOrgList()">
</select>
<br/>
<label>Organization</label>
<select id="ID_C_Organization_ID" name="ID_C_Organization_ID">
</select>
<br/>
<label>Date</label>
<input type="text" size="8"/>
<img src="Calendar16.gif" border="0"/>
<br/>
<label>Type</label>
<input type="radio" name="type" value="Time" style="width: 20px;"/> Time
<input type="radio" name="type" value="Monetary" checked="true" style="width: 20px;"/> Monetary
<br/>
<label>Product</label>
<input type="text" size="20"/>
<br/>
<label>Quantity</label>
<input type="text" size="10"/>
<br/>
<label>Expense Amount</label>
<input type="text" size="10"/>
<img src="Calculator16.gif" border="0"/>
<br/>
<label>Invoice Price</label>
<input type="text" size="10"/>
<img src="Calculator16.gif" border="0"/>
<br/>
</fieldset>
</td>
<td class="lineItem">
<fieldset>
<legend>Reference</legend>
<label>Business Partner</label>
<select id="ID_C_Partner_ID" name="ID_C_Partner_ID">
</select>
<br/>
<label>Campaign</label>
<select id="ID_C_Campaign_ID" name="ID_C_Campaign_ID">
<option selected="selected">Any</option>
</select>
<br/>
<label>Project</label>
<select id="ID_C_Project_ID" name="ID_C_Project_ID" onchange="updatePhaseList()">
<option selected="selected">Any</option>
</select>
<br/>
<label>Phase</label>
<select id="ID_C_Phase_ID" name="ID_C_Phase_ID" onchange="updateTaskList()">
<option>Any</option>
</select>
<br/>
<label>Task</label>
<select id="ID_C_Task_ID" name="ID_C_Task_ID">
<option>Any</option>
</select>
<br/>
</fieldset>
</td>
</tr>
<tr>
<td class="lineItem">
<fieldset>
<legend>Description</legend>
<textarea cols="40" class="wideText"></textarea>
<div class="entryNote">Max 1500 Characters</div>
</fieldset>
</td>
<td class="lineItem">
<fieldset>
<legend>Note</legend>
<textarea cols="40" class="wideText"></textarea>
<div class="entryNote">Max 1500 Characters</div>
</fieldset>
</td>
</tr>
</table>
<br/>
<div class="buttons">
<input type="submit" name="Submit" value="Save Draft" />
<input type="submit" name="Submit" value="Submit Draft for Approval" />
<input type="button" value="Cancel Draft" onclick="cancelExpense();"/>
<input type="reset"/>
</div>
</form>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,371 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=expenses.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: expenses.jsp,v 1.9 2006/05/26 20:06:25 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2004 Jorg Janke
- - -
- Web Store Expenses
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Expenses</title>
<script type="text/javascript">
function updateClientList()
{
/**
* call searchServlet
* param: get = 'clientList'
*
* get back:
* <clients>
* <client id='0'>ANY</client>
* <client id='1'>GardenWorld</client>
* <client id='2'>ComPiere, Inc.</client>
* </clients>
*/
var params = new Array();
params['get']='clientList';
var loader = new AJAX.AjaxLoader("searchServlet", updateClientListCallback, null, "GET", params);
}
function updateClientListCallback()
{
updateSelect(this, "clients", "ID_C_Client_ID");
updateOrgList();
}
addOnLoadListener(updateClientList);
function updatePartnerList()
{
/**
* call searchServlet
* param: get = 'partnerList'
*
* get back:
* <partners>
* <partner id='0'>ANY</partner>
* <partner id='1'>Joe Block</partner>
* </partners>
*/
var params = new Array();
params['get']='partnerList';
var loader = new AJAX.AjaxLoader("searchServlet", updatePartnerListCallback, null, "GET", params);
}
function updatePartnerListCallback()
{
updateSelect(this, "partners", "ID_C_Partner_ID");
}
addOnLoadListener(updatePartnerList);
function updateOrgList()
{
var clientSelect = document.getElementById('ID_C_Client_ID');
var clientOption = clientSelect.options[clientSelect.selectedIndex];
var clientId = clientOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'orgList'
* param: clientID = '123'
*
* get back:
* <orgs clientID='123'>
* <org id='0'>ANY</client>
* <org id='1'>HQ</org>
* <org id='2'>Sales</org>
* <org id='3'>Support</org>
* </orgs>
*/
var params = new Array();
params['get']='orgList';
params['clientID']=clientId;
var loader = new AJAX.AjaxLoader("searchServlet", updateOrgListCallback, null, "GET", params);
}
function updateOrgListCallback()
{
updateSelect(this, "orgs", "ID_C_Organization_ID");
}
function updateCampaignList()
{
/**
* call searchServlet
* param: get = 'campaignList'
*
* get back:
* <campaigns>
* <campaign id='0'>ANY</campaign>
* <campaign id='1'>Rose Festival</campaign>
* </campaigns>
*/
var params = new Array();
params['get']='campaignList';
var loader = new AJAX.AjaxLoader("searchServlet", updateCampaignListCallback, null, "GET", params);
}
function updateCampaignListCallback()
{
updateSelect(this, "campaigns", "ID_C_Campaign_ID");
}
addOnLoadListener(updateCampaignList);
function updateProjectList()
{
/**
* call searchServlet
* param: get = 'projectList'
*
* get back:
* <projects>
* <project id='0'>ANY</project>
* <project id='1'>Landscaping New Office</project>
* </projects>
*/
var params = new Array();
params['get']='projectList';
var loader = new AJAX.AjaxLoader("searchServlet", updateProjectListCallback, null, "GET", params);
}
function updateProjectListCallback()
{
updateSelect(this, "projects", "ID_C_Project_ID");
updatePhaseList();
}
addOnLoadListener(updateProjectList);
function updatePhaseList()
{
var projectSelect = document.getElementById('ID_C_Project_ID');
var projectOption = projectSelect.options[projectSelect.selectedIndex];
var projectID = projectOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'phaseList'
* param: projectID = '123'
*
* get back:
* <phases projectID='123'>
* <phase id='0'>ANY</phase>
* <phase id='1'>Planning</phase>
* </phases>
*/
var params = new Array();
params['get']='phaseList';
params['projectID']=projectID;
var loader = new AJAX.AjaxLoader("searchServlet", updatePhaseListCallback, null, "GET", params);
}
function updatePhaseListCallback()
{
updateSelect(this, "phases", "ID_C_Phase_ID");
updateTaskList();
}
function updateTaskList()
{
var projectSelect = document.getElementById('ID_C_Project_ID');
var projectOption = projectSelect.options[projectSelect.selectedIndex];
var projectID = projectOption.attributes.getNamedItem('value').value;
var phaseSelect = document.getElementById('ID_C_Phase_ID');
var phaseOption = phaseSelect.options[phaseSelect.selectedIndex];
var phaseID = phaseOption.attributes.getNamedItem('value').value;
/**
* call searchServlet
* param: get = 'phaseList'
* param: projectID = '123'
* param: phaseID = '456'
*
* get back:
* <tasks projectID='123' phaseID='456'>
* <task id='0'>ANY</task>
* <task id='1'>Contact Owner</task>
* </tasks>
*/
var params = new Array();
params['get']='taskList';
params['projectID']=projectID;
params['phaseID']=phaseID;
var loader = new AJAX.AjaxLoader("searchServlet", updateTaskListCallback, null, "GET", params);
}
function updateTaskListCallback()
{
updateSelect(this, "tasks", "ID_C_Task_ID");
}
</script>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Expenses </h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<p><a href="expense.jsp">New Expense</a></p>
<p><a href="expense.jsp?W_Expense_ID=100002">Edit Most Recent Expense</a></p>
<form action="expenseServlet" method="post" enctype="application/x-www-form-urlencoded" name="search" id="search">
<fieldset>
<legend>Search</legend>
<table class="internalTable">
<tr>
<td class="lineItem">
<label>Client</label>
<select id="ID_C_Client_ID" name="ID_C_Client_ID" onchange="updateOrgList()">
<option selected="selected">Any</option>
</select>
<br/>
<label>Organization</label>
<select id="ID_C_Organization_ID" name="ID_C_Organization_ID">
<option selected="selected">Any</option>
</select>
<br/>
<label>Business Partner</label>
<select id="ID_C_Partner_ID" name="ID_C_Partner_ID">
<option selected="selected">Any</option>
</select>
<br/>
<label>Campaign</label>
<select id="ID_C_Campaign_ID" name="ID_C_Campaign_ID">
<option selected="selected">Any</option>
</select>
<br/>
<label>Start Date</label>
<input type="text" size="8"/>
<img src="Calendar16.gif" border="0"/>
<br/>
<label>End Date</label>
<input type="text" size="8"/>
<img src="Calendar16.gif" border="0"/>
<br/>
</td>
<td class="lineItem">
<label>Project</label>
<select id="ID_C_Project_ID" name="ID_C_Project_ID" onchange="updatePhaseList()">
<option selected="selected">Any</option>
</select>
<br/>
<label>Phase</label>
<select id="ID_C_Phase_ID" name="ID_C_Phase_ID" onchange="updateTaskList()">
<option>Any</option>
</select>
<br/>
<label>Task</label>
<select id="ID_C_Task_ID" name="ID_C_Task_ID">
<option>Any</option>
</select>
<br/>
<label>Document Status</label>
<select id="ID_C_Status_ID" name="ID_C_Status_ID">
<option selected="selected">Any</option>
<option>Drafted</option>
<option>Submitted</option>
<option>Approved</option>
</select>
<br/>
<label>Amount</label>
<input type="text"/>
<img src="Calculator16.gif" border="0"/>
<br/>
<label>Text in Descr.</label>
<input type="text"/>
<br/>
</td>
</tr>
</table>
<div class="buttons">
<input type="button" name="Search" value="Search Expenses"/>
<input type="button" name="Reset" value="Reset"/>
</div>
</fieldset>
</form>
<br/>
<c:choose>
<c:when test="${info.expenses}.size() > 0">
<div class="tableNav">
<img src="wfStart24.gif" onclick="alert('CLICK');" />
<img src="wfBack24.gif" onclick="alert('CLICK');" />
Page 1
<img src="wfNext24.gif" onclick="alert('CLICK');" />
<img src="wfEnd24.gif" onclick="alert('CLICK');" />
</div>
</c:when>
</c:choose>
<table class="contentTable">
<tr>
<th>Document #</th>
<th>Date</th>
<th>Description</th>
<th>Amount</th>
<th>Approved</th>
</tr>
<c:forEach items='${info.expenses}' var='report' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><a href="expense.jsp?W_Expense_ID=<c:out value='${report.documentNo}'/>"><c:out value='${report.documentNo}'/></a>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><fmt:formatDate value='${report.dateReport}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><c:out value='${report.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' /> amount"><c:out value='${report.approvalAmt}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />">
<c:choose>
<c:when test='${report.approved}'>
<input type="checkbox" checked="checked" disabled="true" />
</c:when>
<c:otherwise>
<input type="checkbox" disabled="true" />
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</table>
<c:choose>
<c:when test="${info.expenses}.size() > 0">
<div class="tableNav">
<img src="wfStart24.gif" onclick="alert('CLICK');" />
<img src="wfBack24.gif" onclick="alert('CLICK');" />
Page 1
<img src="wfNext24.gif" onclick="alert('CLICK');" />
<img src="wfEnd24.gif" onclick="alert('CLICK');" />
</div>
</c:when>
</c:choose>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,272 +0,0 @@
/** Adempiere Web Store (c) Jorg Janke */
/** $Id$ */
html{
}
body{
font-family: Times New Roman, sans-serif;
font-size: 11px;
color: #000000;
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
}
#page{
}
#main {
width: 100%;
}
#menu{
display: none;
}
.menuDetail{
display: none;
}
.menuDetail:hover{
display: none;
}
.menuMain{
display: none;
}
.menuMain:hover{
display: none;
}
.menuSub{
display: none;
}
.menuSub:hover{
display: none;
}
#content {
position: absolute;
right: 0px;
font-family: Times New Roman, sans-serif;
font-size: 11px;
vertical-align: top;
padding: 5px;
border: 0px;
}
#vendorUse{
display: none;
}
.contentTable{
font-family: Times New Roman, sans-serif;
font-size: 11px;
width: 100%;
padding: 2px;
}
.internalTable{
font-family: Times New Roman, sans-serif;
font-size: 11px;
width: 100%;
padding: 2px;
border-style: none;
}
.adTable{
width: 100%;
padding: 5px;
}
.oddRow{
background-color: #FFCC99;
}
.evenRow{
background-color: #FF9966;
}
.amount{
text-align: right;
}
.quantity{
text-align: right;
}
.numeric{
text-align: right;
}
#footer{
display: none;
}
#footerParam4{
display: none;
}
#footerParam5{
text-align: center;
display:inline;
}
#footerParam6{
display: none;
}
#header{
display: none;
}
#headerIcon {
display: none;
}
#headerIcon img{
display: none;
}
#headerContent {
display: none;
}
#headerMenu {
display: none;
}
h1 {
font-size: x-large;
margin-bottom: 10px;
margin-top: 0;
}
h2 {
font-size: large;
font-style: italic;
}
h3 {
font-size: medium;
font-style: normal;
font-weight: bold;
}
h4 {
font-size: medium;
font-style: italic;
}
h5 {
font-size: medium;
font-weight: normal;
}
h6 {
font-size: larger;
font-weight: bold;
}
hr {
padding-bottom: 0;
padding-top: 0;
}
#menu a {
display: none;
}
#menu a:hover {
display: none;
}
p {
text-align: justify;
}
th, legend {
color: #EEEEEE;
border: 1px;
border-color: #CCCCCC;
border-style: outset;
background-color: #006699;
text-align: left;
vertical-align: top;
}
caption {
text-align: left;
font-style: italic;
font-weight: bolder;
}
.error{
border: 1px solid #FF4A4A;
font-weight: bold;
text-align: center;
width: 100%;
}
form{
width: 100%;
}
fieldset{
border: 0px solid #AAAAAA;
clear: both;
}
label{
clear: left;
width: 35%;
float: left;
text-align: right;
margin-right: 0.8em;
display: block;
font-weight: bold;
vertical-align: baseline;
white-space: nowrap;
}
input{
/* color: #781351;*/
/* background: #fee3ad;*/
/* border: #000000;*/
}
select{
color: #000000;
background: #ffffff;
border: 1px solid #CCCCCC;
}
.mandatory{
background:#FFFF99;
}
input.disabled{
border: 0px;
background: transparent;
}
.buttons{
text-align:center;
}
.Cbasket{
font-size: 9px;
display: inline;
}
#imgButton{
border-style:outset;
}
#imgButtonPressed{
border-style:inset;
}
#status{
background-color: #fff8dc;
color: #000000;
display: none;
}
#validationInfo{
display: none;
}
#visaBox{
display: none;
}
#amexBox{
display: none;
}
.availProduct{
/* comment out next line to show the Availability column */
display:none;
}
label#productSearch{
width:150px;
float: left;
text-align: right;
margin-right: 0.5em;
display: block;
}
.nobr{
white-space: nowrap;
}
.wideText{
width:100%;
}
.lineItem{
vertical-align: top;
}
.entryNote{
font-family: Times New Roman, sans-serif;
font-size: 11px;
color: #666666;
text-align: center;
vertical-align: top;
}
.emphasized{
font-weight: bold;
}
.disabledMsg{
display: none;
font-style: italic;
text-align: center;
}
#fileLoad{
display: none;
}

View File

@ -1,410 +0,0 @@
/** Adempiere Web Store (c) Jorg Janke */
/** $Id$ */
html{
overflow-y: hidden;
overflow-x: hidden;
overflow: auto;
}
body{
font-family: Times New Roman, serif;
color: #333333;
margin: 0px;
padding: 0px;
background-color: #FFFFFF;
overflow-y: auto;
overflow-x: auto;
overflow: hidden;
height: 100%;
width: 100%;
}
#page{
background-color: #CC0000;
}
#main {
background-color: #CC0000;
clear: both;
width: 100%;
border: 0px;
border-collapse: collapse;
margin-top: -5px;
}
#menu{
vertical-align: top;
text-align: center;
color: #CCCCCC;
background-color:#CC0000;
background-image: url("gwr_footertile.jpg");
background-repeat: repeat;
width: 165px;
float: right;
padding-top: 5px;
overflow: hidden;
margin-top: -5px;
}
#content {
vertical-align: top;
left: 0px;
right: 165px;
margin-right: 0px;
background-color: #FFFFCC;
border-width: 0px;
padding: 5px;
position: absolute;
min-width: 730px;
border-left: 5px solid #CC0000;
border-top: 5px solid #CC0000;
}
#vendorUse{
vertical-align:top;
text-align:right;
margin-top: -3px;
float: right;
background-color: #FFFFFF;
}
.contentTable{
width: 100%;
border: 1px;
border-spacing: 2px;
padding: 2px;
border-color: #003366;
border-style: solid;
}
.internalTable{
width: 100%;
padding: 2px;
border-style: none;
}
.adTable{
width: 100%;
border: 1px;
border-spacing: 1px;
padding: 5px;
}
.oddRow{
background-color: #FFCC99;
}
.evenRow{
background-color: #FF9966;
}
.amount{
text-align: right;
}
.quantity{
text-align: right;
}
.numeric{
text-align: right;
}
#footer{
color: #CCCCCC;
background-color:#CC0000;
background-image: url("gwr_footertile.jpg");
background-repeat: repeat;
width: 100%;
height: 80px;
border: 0px;
border-collapse: collapse;
padding: 3px;
white-space: nowrap;
min-width: 730px;
}
#footerParam4{
width: 130px;
text-align: left;
display:inline;
float: left;
white-space: nowrap;
}
#footerParam5{
color: #FFFF99;
text-align: left;
display:inline;
float: left;
white-space: nowrap;
}
#footerParam6{
width: 165px;
text-align: center;
display:inline;
float: right;
white-space: nowrap;
}
#header{
background-color:#CCCCCC;
background-image: url("gwr_header.jpg");
background-repeat: repeat;
height: 75px;
display: block;
}
#headerIcon {
width: 165px;
height: 80px;
text-align: center;
float: right;
border: 0px;
}
#headerIcon img{
width: 165px;
height: 80px;
border-style: none;
border-width: 0px;
}
#headerContent {
text-align: right;
color: #FFFFFF;
font-weight: bold;
white-space: nowrap;
position: absolute;
top: 18px;
right: 180px;
height: 51px;
padding: 4px;
}
#headerMenu {
text-align: left;
width: 240px;
float: left;
position: absolute;
top: 25px;
left: 0px;
padding: 4px;
}
a {
color: #003366;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1 {
color: #003366;
font-size: x-large;
margin-bottom: 10px;
margin-top: 0;
}
h2 {
color: #333333;
font-size: large;
font-style: italic;
}
h3 {
color: #006699;
font-size: medium;
font-style: normal;
font-weight: bold;
}
h4 {
color: #6600CC;
font-size: medium;
font-style: italic;
}
h5 {
color: #660099;
font-size: medium;
font-weight: normal;
}
h6 {
font-size: larger;
font-weight: bold;
}
hr {
padding-bottom: 0;
padding-top: 0;
width: 90%;
margin-left: 5%;
}
p {
text-align: justify;
}
th {
color: #EEEEEE;
border: 1px;
border-color: #CCCCCC;
border-style: outset;
background-color: #CC0000;
text-align: left;
vertical-align: top;
}
caption {
color: #660099;
text-align: left;
font-style: italic;
font-weight: bolder;
}
.menuDetail{
color: #006699;
font-family: Times New Roman,serif;
font-size: 12px;
padding-bottom: 0;
padding-left: 20px;
padding-top: 0;
text-decoration: none;
}
.menuDetail:hover{
color: #006699;
font-family: Times New Roman,serif;
font-size: 12px;
padding-bottom: 0;
padding-left: 20px;
padding-top: 0;
text-decoration: underline;
}
.menuMain{
color: #FFFFFF;
font-weight: bold;
font-family: Times New Roman,serif;
font-size: 16px;
text-align: left;
text-decoration: none;
padding-left: 5px;
background-color: #CC0000;
}
.menuMain:hover{
color: #CC0000;
font-family: Times New Roman,serif;
font-size: 16px;
text-align: left;
text-decoration: underline;
background-color: #FFFFCC;
padding-left: 5px;
}
.menuSub{
color: #FFFFFF;
font-family: Times New Roman,serif;
font-size: 14px;
padding-left: 10px;
text-align: left;
text-decoration: none;
}
.menuSub:hover{
color: #CC0000;
font-family: Times New Roman,serif;
font-size: 14px;
padding-left: 10px;
text-align: left;
text-decoration: underline;
background-color: #FFFFCC;
}
.error{
border: 1px solid #FF4A4A;
color: #FF0000;
font-weight: bold;
text-align: center;
width: 100%;
}
form{
width: 100%;
}
fieldset{
border: 1px solid #336633;
clear: both;
}
legend{
color: #003300;
background: #CCFFCC;
border: 1px solid #336633;
padding: 2px 6px;
}
label{
clear: left;
width: 35%;
float: left;
text-align: right;
margin-right: 0.8em;
display: block;
font-weight: bold;
vertical-align: baseline;
white-space: nowrap;
}
input{
color: #003366;
font-weight: bold;
background: #FFFFFF;
border: 1px solid #000000;
}
select{
color: #000000;
background: #ffffff;
border: 1px solid #CCCCCC;
}
.mandatory{
background:#FFFF66;
}
input.disabled{
border: 0px;
background: transparent;
}
.buttons{
text-align:center;
}
.Cbasket{
font-size: 9px;
display: inline;
}
#imgButton{
border-style:outset;
}
#imgButtonPressed{
border-style:inset;
}
#status{
background-color: #fff8dc;
color: #000000;
display: none;
}
#validationInfo{
text-align: center;
}
#visaBox{
width: 40%;
float:left;
text-align: right;
}
#amexBox{
width: 40%;
float:right;
text-align: left;
}
.availProduct{
/* comment out next line to show the Availability column */
display:none;
}
label#productSearch{
width:150px;
float: left;
text-align: right;
margin-right: 0.5em;
display: block;
}
.nobr{
white-space: nowrap;
}
.wideText{
width:100%;
}
.lineItem{
vertical-align: top;
}
.entryNote{
font-size: small;
color: #666666;
text-align: center;
vertical-align: top;
}
.emphasized{
font-weight: bold;
}
.disabledMsg{
display: none;
font-style: italic;
text-align: center;
}
.tableNav
{
vertical-align: top;
text-align: left;
width: 100%;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

View File

@ -1,59 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<cws:priceList priceList_ID="0"/>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: help.jsp,v 1.3 2006/05/09 22:20:00 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Help
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Welcome</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<script language="JavaScript" type="text/JavaScript">
;
</script>
<noscript>
Please enable Java Script to continue.
</noscript>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Web Store Help</h1>
<h3>New User</h3>
<p>You create your new account when you create an order or when you click on the
"Login" button or "Welcome" link. Enter your email address, a password, and then
select "New User" to complete the other mandatory and optional information.</p>
<h3>Invalid Password or EMail </h3>
<p>If you received an error, you may select "Send Password to
EMail" to have your password sent to the email address you've entered. If you cannot
receive an email with that email address (e.g. misspelling), contact us with both
the current incorrect email address as well as the correct one. Do NOT login using
a different email address or you will create a new account and not be able to access
the assets of the original account. If that happens, you will need to contact us to
merge the accounts. </p>
<h3>Change Password, EMail Address or Contact Information</h3>
<p>To change your password, you must first log in with your old password. Then
select "Update User Info" at the top of the page. On the <i>User Information</i> screen,
use the <i>Change Password</i> field set to enter your old and new password. Your <i>EMail
Address</i> and <i>Contact Information</i> may also be changed on the <i>User Information</i>
screen.</p>
<h3>Additional User of Business Partner</h3>
<p>If you are an additional user of an existing Business Partner, please ask your
supervisor to contact us and we will add you as an additional user to that Business
Partner.</p>
<h3>Payment Not Approved</h3>
<p>If your payment was not successful, you may use <i>My Orders</i> to either "Void" the
order or "Complete" it with the correct payment information. If you need additional
help completing the order please use the <i>Contact Us</i> screen to contact the company
directly.</p>
</div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -1,21 +0,0 @@
<html>
<head>
<title>iDempiere Web Store</title>
<meta name="description" content="iDempiere Web Store Page" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<link href="/standard.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<p>
<script language="JavaScript" type="text/javascript">
document.location='index.jsp';
</script>
</p>
<p><a href="http://www.idempiere.org/"><img src="iDempiere120x60.gif" alt="iDempiere&#8482; - Copyright &copy; 1999-2013" width="120" height="24" border="0" /></a>
</p>
<p>Click <a href="index.jsp">here</a> if not forwarded automatically</p>
<hr>
<p>How to <a href="customize.html">Customize</a> your web store</p>
</body>
</html>

View File

@ -1,92 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<cws:priceList priceList_ID="0"/>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: index.jsp,v 1.3 2006/05/19 22:17:32 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Index
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Welcome</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<c:out value='${ctx.webParam2}' escapeXml='false'/>
<form action="productServlet" method="post" enctype="application/x-www-form-urlencoded" name="search" id="search">
<fieldset>
<legend>Search</legend>
<label id="productSearch" for="SearchString">Product </label>
<input name="SearchString" type="text" id="SearchString" />
<cws:productCategoryList/>
<input type="submit" name="Submit" value="Search" />
<c:if test='${priceList.notAllPrices}'>
<p><i>Not all Products displayed - enter Search criteria to limit selection</i></p>
</c:if>
<c:if test='${priceList.noLines}'>
<p><i>No Products found - enter Search criteria</i></p>
</c:if>
</fieldset>
</form>
<br/>
<form action="basketServlet" method="post" enctype="application/x-www-form-urlencoded" name="products" id="products">
<input name="M_PriceList_ID" type="hidden" value="<c:out value='${priceList.priceList_ID}'/>" />
<input name="M_PriceList_Version_ID" type="hidden" value="<c:out value='${priceList.priceList_Version_ID}'/>" />
<table class="contentTable">
<tr>
<th colspan="2" align="left">Product</th>
<th>Description</th>
<th><c:out value='${priceList.currency}'/>&nbsp;Price</th>
<th>Quantity</th>
<th>UOM</th>
<th>&nbsp;</th>
<th class="availProduct"><cws:message txt="Availability"/></th>
</tr>
<c:forEach items='${priceList.prices}' var='product' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><c:if test='${not empty product.imageURL}'><img src="<c:out value='${product.imageURL}'/>" /></c:if></td>
<td class="<c:out value='${rowClass}' />"> <input name="Name_<c:out value='${product.id}'/>" type="hidden" value="<c:out value='${product.name}'/>" />
<c:choose>
<c:when test="${not empty product.descriptionURL}">
<a href="<c:out value='${product.descriptionURL}'/>" target="pd"><c:out value="${product.name}"/></a>
</c:when>
<c:otherwise>
<c:out value='${product.name}'/>
</c:otherwise>
</c:choose>
</td>
<td class="<c:out value='${rowClass}' />"><c:out value='${product.description}'/> <c:if test="${empty product.description}">&nbsp;</c:if></td>
<td class="<c:out value='${rowClass}' /> amount"> <input name="Price_<c:out value='${product.id}'/>" type="hidden" value="<c:out value='${product.price}'/>" />
<fmt:formatNumber value='${product.price}' type="currency" currencySymbol="" /> </td>
<td class="<c:out value='${rowClass}' /> quantity"> <input name="Qty_<c:out value='${product.id}'/>" type="text" id="qty_<c:out value='${product.id}'/>" value="1" size="5" maxlength="5" /></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${product.uomName}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"> <input name="Add_<c:out value='${product.id}'/>" type="submit" id="Add_<c:out value='${product.id}'/>" value="Add" /></td>
<td class="<c:out value='${rowClass}'/> availProduct"><!-- c:out value='$ {product.available}'/ -->&nbsp;</td>
</tr>
</c:forEach>
</table>
</form>
<p><font size="-1">Price List: <c:out value='${priceList.name}'/> (<c:out value='${priceList.priceCount}'/>) - <c:out value='${priceList.searchInfo}'/></font></p>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,67 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=info.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: info.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Interest Area
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Interest Areas</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>Info - Interest Areas</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<table class="contentTable">
<tr>
<th>Interest Area</th>
<th>Description</th>
<th align="right">Subscription</th>
</tr>
<c:forEach items='${info.interests}' var='interest' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><c:out value='${interest.name}'/></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${interest.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />">
<c:choose>
<c:when test='${interest.subscribed}'>
<fmt:formatDate value='${interest.subscribeDate}'/>&nbsp;
<input type="button" name="UnSubscribe_<c:out value='${interest.r_InterestArea_ID}'/>" value="Un-Subscribe"
onClick="window.top.location.replace('infoServlet?mode=unsubscribe&area=<c:out value='${interest.r_InterestArea_ID}'/>&contact=<c:out value='${info.user_ID}'/>');" >
</c:when>
<c:otherwise>
<input type="button" name="Subscribe_<c:out value='${interest.r_InterestArea_ID}'/>" value="Subscribe"
onClick="window.top.location.replace('infoServlet?mode=subscribe&area=<c:out value='${interest.r_InterestArea_ID}'/>&contact=<c:out value='${info.user_ID}'/>');" >
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,93 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=invoices.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: invoiceLines.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Invoices
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Invoice Details</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<!-- Set Invoice ID and get Invoice -->
<c:set target='${info}' property='id' value='${param.C_Invoice_ID}' />
<c:set var='invoice' value='${info.invoice}' />
<c:if test='${empty invoice}'>
<c:set target='${info}' property='message' value='Invoice not found' />
<c:redirect url='invoices.jsp'/>
</c:if>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Invoice Details <c:out value='${invoice.documentNo}'/></h1>
<c:if test='${not empty info.info}'>
<p><c:out value='${info.message}'/></p>
</c:if>
<table class="contentTable">
<tr>
<th>Document No</th>
<th>Description</th>
<th>Date</th>
<th>Total Lines</th>
<th>Grand Total</th>
<th>Image</th>
<th>Open</th>
</tr>
<tr>
<td class="oddRow"><c:out value='${invoice.documentNo}'/></td>
<td class="oddRow"><c:out value='${invoice.description}'/>&nbsp;</td>
<td class="oddRow"><fmt:formatDate value='${invoice.dateInvoiced}'/></td>
<td class="oddRow amount"><fmt:formatNumber value='${invoice.totalLines}' type="currency" currencySymbol=""/></td>
<td class="oddRow amount"><c:out value='${invoice.currencyISO}'/>&nbsp;<fmt:formatNumber value='${invoice.grandTotal}' type="currency" currencySymbol=""/></td>
<td class="oddRow"><a href="invoiceServlet/I_<c:out value='${invoice.documentNo}'/>.pdf?Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>" target="_blank"><img src="pdf.gif" alt="Get Invoice Image" width="30" height="30" border="0" /></a></td>
<td class="oddRow"><c:if test='${invoice.paid}'>Paid</c:if><c:if test='${not invoice.paid}'>
<input type="submit" name="InvoicePay" value="Pay <c:out value='${invoice.openAmt}'/>"
onClick="window.top.location.replace('paymentServlet?C_Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>&Amt=<c:out value='${invoice.openAmt}'/>');">
</c:if></td>
</tr>
</table>
<h3>Lines</h3>
<table class="contentTable">
<tr>
<th>Line</th>
<th>Name</th>
<th>Description</th>
<th>Qty</th>
<th>Price</th>
<th>Line Net</th>
</tr>
<c:forEach items='${invoice.lines}' var='line' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.line}'/></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.name}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><c:out value='${line.descriptionText}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' /> quantity"><fmt:formatNumber value='${line.qtyInvoiced}' /></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${line.priceActual}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${line.lineNetAmt}' type="currency" currencySymbol=""/></td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

View File

@ -1,66 +0,0 @@
<%@ include file="/WEB-INF/jspf/page.jspf" %>
<c:if test='${empty webUser || !webUser.loggedIn}'>
<c:redirect url='loginServlet?ForwardTo=invoices.jsp'/>
</c:if>
<html>
<!--
- Author: Jorg Janke
- Version: $Id: invoices.jsp,v 1.2 2006/05/06 00:41:33 mdeaelfweald Exp $
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Invoices
-->
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - My Invoices</title>
</head>
<body><div id="page">
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<div id="main">
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
<div id="content">
<h1>My Invoices</h1>
<c:if test='${not empty info.info}'>
<p><b><c:out value='${info.message}'/></b></p>
</c:if>
<table class="contentTable">
<tr>
<th>Document No</th>
<th>Description</th>
<th>Date</th>
<th>Total Lines</th>
<th>Grand Total</th>
<th>Image</th>
<th>Open</th>
</tr>
<c:forEach items='${info.invoices}' var='invoice' varStatus='status'>
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
<c:choose>
<c:when test="<%= status.getCount() %2 == 0 %>">
<c:set var="rowClass" value="evenRow"/>
</c:when>
<c:otherwise>
<c:set var="rowClass" value="oddRow"/>
</c:otherwise>
</c:choose>
<tr>
<td class="<c:out value='${rowClass}' />"><a href="invoiceLines.jsp?C_Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>"><c:out value='${invoice.documentNo}'/></a></td>
<td class="<c:out value='${rowClass}' />"><c:out value='${invoice.description}'/>&nbsp;</td>
<td class="<c:out value='${rowClass}' />"><fmt:formatDate value='${invoice.dateInvoiced}'/></td>
<td class="<c:out value='${rowClass}' /> amount"><fmt:formatNumber value='${invoice.totalLines}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' /> amount"><c:out value='${invoice.currencyISO}'/>&nbsp;<fmt:formatNumber value='${invoice.grandTotal}' type="currency" currencySymbol=""/></td>
<td class="<c:out value='${rowClass}' />"><a href="invoiceServlet/I_<c:out value='${invoice.documentNo}'/>.pdf?Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>" target="_blank"><img src="pdf.gif" alt="Get Invoice Image" width="30" height="30" border="0"></a></td>
<td class="<c:out value='${rowClass}' />"><c:if test='${invoice.paid}'>Paid</c:if><c:if test='${not invoice.paid}'>
<input type="submit" name="InvoicePay" value="Pay <c:out value='${invoice.openAmt}'/>"
onClick="window.top.location.replace('paymentServlet?C_Invoice_ID=<c:out value='${invoice.c_Invoice_ID}'/>&Amt=<c:out value='${invoice.openAmt}'/>');">
</c:if></td>
</tr>
</c:forEach>
</table>
<p>&nbsp;</p></div>
</div>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</div></body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 798 B

Some files were not shown because too many files have changed in this diff Show More