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

📄 numdef.java

📁 j2ee源码
💻 JAVA
字号:
/*
 * Created on 2005/11/30
 */
package com.leeman.wkexs.common;

/**
 * @author Dennis
 */
public class NumDef {
	
	public static final int SC_TXN_NO = 1; 
	public static final int SC_NO = 2;
	public static final int QUOTATION_TXN_NO = 3;
	public static final int QUOTATION_NO = 4;
	public static final int DEPOSIT_NO = 5;
	public static final int DEBIT_NOTE_NO = 6;
	public static final int CREDIT_NOTE_NO = 7;	
	public static final int SHIPMENT_NO = 8;
	public static final int PN_NO = 9;	
	public static final int BR_NO = 10;	
	public static final int INVOICE_NO = 11;
	public static final int CUSTOMER_NO = 12;	
	/* Amended by Anthea on 26/6/07 */
	public static final int PRAR_NO = 13;
	/* */
	
	private String running_type;
	private Double increment_by;
	private Double min_value;
	private Double max_value;
	private String running_desc;
	private String recycle;
	
	public NumDef(int runningTypeEnum)
	{
		increment_by = new Double(1);
		min_value = new Double(1);
		max_value = new Double(99999);
		recycle = "N";
		
		switch (runningTypeEnum)
		{
			case NumDef.SC_TXN_NO:
				max_value = new Double(99999);
				running_type = "SC_TXN_NO";
				running_desc = "Sales Contract Txn. No.";
				break;
			case NumDef.SC_NO:
				/* Amended by Anthea on 15/6/07 */
				//max_value = new Double(999);
				max_value = new Double(99999);
				/* */
				running_type = "SC_NO";
				running_desc = "Sales Contract No.";
				break;
			case NumDef.QUOTATION_TXN_NO:
				max_value = new Double(99999);
				running_type = "QUO_TXN";
				running_desc = "Quotation Txn. No.";
				break;
			case NumDef.QUOTATION_NO:
				/* Amended by Anthea on 15/6/07 */
				//max_value = new Double(999);
				max_value = new Double(99999);
				/* */
				running_type = "QUO";
				running_desc = "Quotation No.";
				break;
			case NumDef.DEPOSIT_NO:
				max_value = new Double(99999);
				running_type = "DEPOSIT_NO";
				running_desc = "Deposit No.";
				break;		
			case NumDef.DEBIT_NOTE_NO:
				max_value = new Double(99999);
				running_type = "DEBIT_NO";
				running_desc = "Debit Note No.";
				break;	
			case NumDef.CREDIT_NOTE_NO:
				max_value = new Double(99999);
				running_type = "CREDIT_NO";
				running_desc = "Credit Note No.";
				break;	
			case NumDef.SHIPMENT_NO:
				max_value = new Double(99999);
				running_type = "SHIP_NO";
				running_desc = "Shipment No.";
				break;
			case NumDef.PN_NO:
				max_value = new Double(99999);
				running_type = "PN_NO";
				running_desc = "Prod. Notice No.";
				break;	
			case NumDef.BR_NO:
				max_value = new Double(999999);
				running_type = "BN_NO";
				running_desc = "Bills Receivable No.";
				break;
			case NumDef.INVOICE_NO:
				/* Amended by Anthea on 15/6/07 */
				//max_value = new Double(999);
				max_value = new Double(99999);
			 	/* */
				running_type = "INVOICE_NO";
				running_desc = "Invoice No.";
				break;
			case NumDef.CUSTOMER_NO:
				max_value = new Double(9999999);
				running_type = "CUST_NO";
				running_desc = "Customer No.";
				break;	
			/* Amended by Anthea on 26/6/07 */
			case NumDef.PRAR_NO:
				max_value = new Double(9999999);
				running_type = "PRAR_NO";
				running_desc = "Prar No.";
				break;
			/* */		
			default:
		}
	}
	
	/**
	 * @return
	 */
	public Double getIncrement_by() {
		return increment_by;
	}

	/**
	 * @return
	 */
	public Double getMax_value() {
		return max_value;
	}

	/**
	 * @return
	 */
	public Double getMin_value() {
		return min_value;
	}

	/**
	 * @return
	 */
	public String getRunning_desc() {
		return running_desc;
	}

	/**
	 * @return
	 */
	public String getRunning_type() {
		return running_type;
	}
}

⌨️ 快捷键说明

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