⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x_m_discountschemaline.java

📁 大家共享愉快, 共享愉快, 共享愉快, 共享愉快,共享愉快
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2005 Jorg Janke */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import org.compiere.util.*;
/** Generated Model for M_DiscountSchemaLine
 *  @author Jorg Janke (generated) 
 *  @version Release 2.5.3b - 2006-02-09 16:43:02.217 */
public class X_M_DiscountSchemaLine extends PO
{
/** Standard Constructor */
public X_M_DiscountSchemaLine (Properties ctx, int M_DiscountSchemaLine_ID, String trxName)
{
super (ctx, M_DiscountSchemaLine_ID, trxName);
/** if (M_DiscountSchemaLine_ID == 0)
{
setC_ConversionType_ID (0);
setConversionDate (new Timestamp(System.currentTimeMillis()));	// @#Date@
setLimit_AddAmt (Env.ZERO);
setLimit_Base (null);	// X
setLimit_Discount (Env.ZERO);
setLimit_MaxAmt (Env.ZERO);
setLimit_MinAmt (Env.ZERO);
setLimit_Rounding (null);	// C
setList_AddAmt (Env.ZERO);
setList_Base (null);	// L
setList_Discount (Env.ZERO);
setList_MaxAmt (Env.ZERO);
setList_MinAmt (Env.ZERO);
setList_Rounding (null);	// C
setM_DiscountSchemaLine_ID (0);
setM_DiscountSchema_ID (0);
setSeqNo (0);	// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_DiscountSchemaLine WHERE M_DiscountSchema_ID=@M_DiscountSchema_ID@
setStd_AddAmt (Env.ZERO);
setStd_Base (null);	// S
setStd_Discount (Env.ZERO);
setStd_MaxAmt (Env.ZERO);
setStd_MinAmt (Env.ZERO);
setStd_Rounding (null);	// C
}
 */
}
/** Load Constructor */
public X_M_DiscountSchemaLine (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AD_Table_ID=477 */
public static final int Table_ID=477;

/** TableName=M_DiscountSchemaLine */
public static final String Table_Name="M_DiscountSchemaLine";

protected static KeyNamePair Model = new KeyNamePair(477,"M_DiscountSchemaLine");

protected BigDecimal accessLevel = new BigDecimal(3);
/** AccessLevel 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);
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_M_DiscountSchemaLine[").append(get_ID()).append("]");
return sb.toString();
}
/** Set Business Partner .
Identifies a Business Partner */
public void setC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null);
 else 
set_Value ("C_BPartner_ID", new Integer(C_BPartner_ID));
}
/** Get Business Partner .
Identifies a Business Partner */
public int getC_BPartner_ID() 
{
Integer ii = (Integer)get_Value("C_BPartner_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Currency Type.
Currency Conversion Rate Type */
public void setC_ConversionType_ID (int C_ConversionType_ID)
{
if (C_ConversionType_ID < 1) throw new IllegalArgumentException ("C_ConversionType_ID is mandatory.");
set_Value ("C_ConversionType_ID", new Integer(C_ConversionType_ID));
}
/** Get Currency Type.
Currency Conversion Rate Type */
public int getC_ConversionType_ID() 
{
Integer ii = (Integer)get_Value("C_ConversionType_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Conversion Date.
Date for selecting conversion rate */
public void setConversionDate (Timestamp ConversionDate)
{
if (ConversionDate == null) throw new IllegalArgumentException ("ConversionDate is mandatory.");
set_Value ("ConversionDate", ConversionDate);
}
/** Get Conversion Date.
Date for selecting conversion rate */
public Timestamp getConversionDate() 
{
return (Timestamp)get_Value("ConversionDate");
}
/** Set Limit price Surcharge Amount.
Amount added to the converted/copied price before multiplying */
public void setLimit_AddAmt (BigDecimal Limit_AddAmt)
{
if (Limit_AddAmt == null) throw new IllegalArgumentException ("Limit_AddAmt is mandatory.");
set_Value ("Limit_AddAmt", Limit_AddAmt);
}
/** Get Limit price Surcharge Amount.
Amount added to the converted/copied price before multiplying */
public BigDecimal getLimit_AddAmt() 
{
BigDecimal bd = (BigDecimal)get_Value("Limit_AddAmt");
if (bd == null) return Env.ZERO;
return bd;
}

/** Limit_Base AD_Reference_ID=194 */
public static final int LIMIT_BASE_AD_Reference_ID=194;
/** Fixed Price = F */
public static final String LIMIT_BASE_FixedPrice = "F";
/** List Price = L */
public static final String LIMIT_BASE_ListPrice = "L";
/** Standard Price = S */
public static final String LIMIT_BASE_StandardPrice = "S";
/** Limit (PO) Price = X */
public static final String LIMIT_BASE_LimitPOPrice = "X";
/** Set Limit price Base.
Base price for calculation of the new price */
public void setLimit_Base (String Limit_Base)
{
if (Limit_Base == null) throw new IllegalArgumentException ("Limit_Base is mandatory");
if (Limit_Base.equals("F") || Limit_Base.equals("L") || Limit_Base.equals("S") || Limit_Base.equals("X"));
 else throw new IllegalArgumentException ("Limit_Base Invalid value - " + Limit_Base + " - Reference_ID=194 - F - L - S - X");
if (Limit_Base.length() > 1)
{
log.warning("Length > 1 - truncated");
Limit_Base = Limit_Base.substring(0,0);
}
set_Value ("Limit_Base", Limit_Base);
}
/** Get Limit price Base.
Base price for calculation of the new price */
public String getLimit_Base() 
{
return (String)get_Value("Limit_Base");
}
/** Set Limit price Discount %.
Discount in percent to be subtracted from base, if negative it will be added to base price */
public void setLimit_Discount (BigDecimal Limit_Discount)
{
if (Limit_Discount == null) throw new IllegalArgumentException ("Limit_Discount is mandatory.");
set_Value ("Limit_Discount", Limit_Discount);
}
/** Get Limit price Discount %.
Discount in percent to be subtracted from base, if negative it will be added to base price */
public BigDecimal getLimit_Discount() 
{
BigDecimal bd = (BigDecimal)get_Value("Limit_Discount");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Fixed Limit Price.
Fixed Limit Price (not calculated) */
public void setLimit_Fixed (BigDecimal Limit_Fixed)
{
set_Value ("Limit_Fixed", Limit_Fixed);
}
/** Get Fixed Limit Price.
Fixed Limit Price (not calculated) */
public BigDecimal getLimit_Fixed() 
{
BigDecimal bd = (BigDecimal)get_Value("Limit_Fixed");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Limit price max Margin.
Maximum difference to original limit price;
 ignored if zero */
public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt)
{
if (Limit_MaxAmt == null) throw new IllegalArgumentException ("Limit_MaxAmt is mandatory.");
set_Value ("Limit_MaxAmt", Limit_MaxAmt);
}
/** Get Limit price max Margin.
Maximum difference to original limit price;
 ignored if zero */
public BigDecimal getLimit_MaxAmt() 
{
BigDecimal bd = (BigDecimal)get_Value("Limit_MaxAmt");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Limit price min Margin.
Minimum difference to original limit price;
 ignored if zero */
public void setLimit_MinAmt (BigDecimal Limit_MinAmt)
{
if (Limit_MinAmt == null) throw new IllegalArgumentException ("Limit_MinAmt is mandatory.");
set_Value ("Limit_MinAmt", Limit_MinAmt);
}
/** Get Limit price min Margin.
Minimum difference to original limit price;
 ignored if zero */
public BigDecimal getLimit_MinAmt() 
{
BigDecimal bd = (BigDecimal)get_Value("Limit_MinAmt");
if (bd == null) return Env.ZERO;
return bd;
}

/** Limit_Rounding AD_Reference_ID=155 */
public static final int LIMIT_ROUNDING_AD_Reference_ID=155;
/** Whole Number .00 = 0 */
public static final String LIMIT_ROUNDING_WholeNumber00 = "0";
/** Nickel .05, .10, .15, ... = 5 */
public static final String LIMIT_ROUNDING_Nickel051015 = "5";
/** Currency Precision = C */
public static final String LIMIT_ROUNDING_CurrencyPrecision = "C";
/** Dime .10, .20, .30, ... = D */
public static final String LIMIT_ROUNDING_Dime102030 = "D";
/** No Rounding = N */
public static final String LIMIT_ROUNDING_NoRounding = "N";
/** Quarter .25 .50 .75 = Q */
public static final String LIMIT_ROUNDING_Quarter255075 = "Q";
/** Ten 10.00, 20.00, .. = T */
public static final String LIMIT_ROUNDING_Ten10002000 = "T";
/** Set Limit price Rounding.
Rounding of the final result */
public void setLimit_Rounding (String Limit_Rounding)
{
if (Limit_Rounding == null) throw new IllegalArgumentException ("Limit_Rounding is mandatory");
if (Limit_Rounding.equals("0") || Limit_Rounding.equals("5") || Limit_Rounding.equals("C") || Limit_Rounding.equals("D") || Limit_Rounding.equals("N") || Limit_Rounding.equals("Q") || Limit_Rounding.equals("T"));
 else throw new IllegalArgumentException ("Limit_Rounding Invalid value - " + Limit_Rounding + " - Reference_ID=155 - 0 - 5 - C - D - N - Q - T");
if (Limit_Rounding.length() > 1)
{
log.warning("Length > 1 - truncated");
Limit_Rounding = Limit_Rounding.substring(0,0);
}
set_Value ("Limit_Rounding", Limit_Rounding);
}
/** Get Limit price Rounding.
Rounding of the final result */
public String getLimit_Rounding() 
{
return (String)get_Value("Limit_Rounding");
}
/** Set List price Surcharge Amount.
List Price Surcharge Amount */
public void setList_AddAmt (BigDecimal List_AddAmt)
{
if (List_AddAmt == null) throw new IllegalArgumentException ("List_AddAmt is mandatory.");
set_Value ("List_AddAmt", List_AddAmt);
}
/** Get List price Surcharge Amount.
List Price Surcharge Amount */
public BigDecimal getList_AddAmt() 
{
BigDecimal bd = (BigDecimal)get_Value("List_AddAmt");
if (bd == null) return Env.ZERO;
return bd;
}

/** List_Base AD_Reference_ID=194 */
public static final int LIST_BASE_AD_Reference_ID=194;
/** Fixed Price = F */
public static final String LIST_BASE_FixedPrice = "F";
/** List Price = L */
public static final String LIST_BASE_ListPrice = "L";
/** Standard Price = S */
public static final String LIST_BASE_StandardPrice = "S";
/** Limit (PO) Price = X */
public static final String LIST_BASE_LimitPOPrice = "X";
/** Set List price Base.
Price used as the basis for price list calculations */
public void setList_Base (String List_Base)
{
if (List_Base == null) throw new IllegalArgumentException ("List_Base is mandatory");
if (List_Base.equals("F") || List_Base.equals("L") || List_Base.equals("S") || List_Base.equals("X"));
 else throw new IllegalArgumentException ("List_Base Invalid value - " + List_Base + " - Reference_ID=194 - F - L - S - X");
if (List_Base.length() > 1)
{
log.warning("Length > 1 - truncated");
List_Base = List_Base.substring(0,0);
}
set_Value ("List_Base", List_Base);
}
/** Get List price Base.
Price used as the basis for price list calculations */
public String getList_Base() 
{
return (String)get_Value("List_Base");
}
/** Set List price Discount %.
Discount from list price as a percentage */
public void setList_Discount (BigDecimal List_Discount)
{
if (List_Discount == null) throw new IllegalArgumentException ("List_Discount is mandatory.");
set_Value ("List_Discount", List_Discount);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -