/**
 *
 */
package my.com.kfh.enterprise.services.common;

/**
 * <pre>
 * PROGRAMMER: Chang Giat Yeng
 * CHANGE-NO:
 * TASK-NO:
 * DATE CREATED: Oct 24, 2008
 * TAG AS:
 * REASON(S):
 * MODIFICATION:
 * </pre>
 */

/**
 * <Class description>
 */
public abstract class CommonConstants
{
	// Name of Form-Beans, View-Beans
	public static final String ERROR_BEAN = "errorBean";
	public static final String ERROR_LOGOUT_VIEW = "errorLogoutView";
	public static final String DROPDOWN_LIST_BEAN = "dropDownListBean";
	public static final String ESB_NORMAL_ACCOUNT_BEAN = "esbNormalAccountBean";
	
	//Pixakarft Bank Negara Changes 2nd Apr 2013 start
	public static final String SERVICE_ATTR = "service";
	public static final String TYPE_ATTR = "type";
	public static final String TYPE_REQ = "req";
	public static final String TRANS_ID = "tid";
	public static final String TYPE_TRANS = "trans";
	public static final String SMS_VIEW_BEAN = "smsView";
	public static final String AMOUNT = "amount";
	public static final String DATE_TIME_DISPLAY = "dateTimeDisplay";
	public static final int ERROR_TAC_SERVICE = 15;
	//Pixakarft Bank Negara Changes 2nd Apr 2013 end
	public static final String BENE_NAME = "beneName";

	// Property of errorBean
	public static final String ACTION = "action";
	public static final String IS_ERROR = "isError";
	public static final String ERROR_KEY = "errorKey";
	public static final String ERROR_DESC = "errorDesc";
	public static final String ERROR_PARAMS = "errorParams";
	public static final String ERROR_TYPE = "errorType";
	public static final String ERROR_USER_MSG = "errorUserMsg";
	public static final String ERROR_CONTENT_MSG = "errorContentMsg";
	public static final String ERROR_LOG_MSG = "errorLogMsg";
	public static final String ERROR_PAGE_TITLE = "errorPageTitle";
	public static final String ERROR_CUST_SERV_MSG = "errorCustServMsg";

	// Property of errorLogoutView
	public static final String ERROR_CODE = "errorCode";
	public static final String ERROR_SERVICE_TYPE = "errorServiceType";
//	public static final String ERROR_TYPE = "errorType";
	public static final String ERROR_MESSAGE_HEADER = "errorMessageHeader";
	public static final String ERROR_MESSAGE_CONTENT = "errorMessageContent";

	// Property of dropDownListBean
	public static final String DISPLAY = "display";
	public static final String VALUE = "value";
	public static final String DISPLAY_OBJECT = "displayObject";

	// Property of esbNormalAccountBean
	public static final String ACCOUNT_NO = "accountNo";
	public static final String ACCOUNT_TYPE = "accountType";
	public static final String APPL_TYPE = "applType";
	public static final String ACCOUNT_DESC = "accountDesc";
	public static final String ACCOUNT_NICKNAME = "accountNickname";
	public static final String ACCOUNT_HOLDER_NAME_1 = "accountHolderName1";
	public static final String ACCOUNT_HOLDER_NAME_2 = "accountHolderName2";
	public static final String ACCOUNT_STATUS = "accountStatus";
	public static final String CURRENT_BALANCE = "currentBalance";
	public static final String AVAILABLE_BALANCE = "availableBalance";
	public static final String CHEQUE_FLOAT = "chequeFloat";
	public static final String ISO_CURRENCY = "isoCurrency";
	// for TCD Account
	public static final String NO_OF_TCD = "noOfTcd";
	public static final String NO_OF_SIGNATURE = "noOfSignature";
	public static final String ORIGINAL_AMT = "originalAmt";
	public static final String TERM = "term";
	public static final String TERM_DISPLAY = "termDisplay";
	public static final String ISSUE_DATE = "issueDate";
	public static final String MATURITY_DATE = "maturityDate";
	public static final String RATE = "rate";
	public static final String PROFIT_AMT = "profitAmt";
	public static final String MATURITY_METHOD = "maturityMethod";

	// Constants
	public static final String YES = "Yes";
	public static final String NO = "No";
//	public static final String MOBILE_NUM_INTERNATIONAL_CODE = "+";
	public static final String DEFAULT_MOBILE_COUNTRY_CODE = "6";

	public static final String DOWNLOAD = "download";
	public static final String DOWNLOAD_TXT = "txt";
	public static final String DOWNLOAD_CSV = "csv";

	public static final String RECEIPT_MAP = "receiptMap";
	public static final String REPRINT = "reprint";
	public static final String RECEIPT_LINK = "receiptLink";
	public static final String FORMBEAN_NAME = "formBeanName";
	public static final String VIEWBEAN_NAME = "viewBeanName";
	public static final String OPERATION_SERVICE_INFO_BEAN = "operationServiceInfoBean";
	public static final String OPERATION_SERVICE_MSG = "operationServiceMsg";
	public static final String PARAM_ERROR_CODE = "errorCode";
	public static final String PARAM_ERROR_TYPE = "errorType";
	public static final String PARAM_ERROR_SERVICE_TYPE = "errorServiceType";
	public static final String FORWARD_ERROR_LOGOUT = "ibErrorLogout";
	public static final String FORWARD_ERROR	= "ibError";
	public static final String FORWARD_ACCESS	= "access";
	public static final String FORWARD_OPERATION_TIMEOUT	= "ibOperationTimeOut";
	public static final String FORWARD_ERROR_REDIRECT = "ibErrorRedirect";

	// CRUD constants
	public static final String DB_CREATE = "CREATE";
	public static final String DB_SELECT = "SELECT";
	public static final String DB_UPDATE = "UPDATE";
	public static final String DB_INSERT = "INSERT";
	public static final String DB_DELETE = "DELETE";
	public static final String DB_SUM = "SUM";
	public static final String DB_FROM = "FROM";
	public static final String DB_WHERE = "WHERE";
	public static final String DB_INTO = "INTO";
	public static final String DB_VALUES = "VALUES";
	public static final String DB_SET = "SET";
	public static final String DB_AND = "AND";
	public static final String DB_OR = "OR";
	public static final String DB_UNION = "UNION";
	public static final String DB_IN = "IN";
	public static final String DB_LIKE = "LIKE";
	public static final String DB_SYSDATE = "SYSDATE";
	public static final String DB_TO_DATE = "TO_DATE";
	public static final String DB_TRUNC = "TRUNC";
	public static final String DB_TABLE_A = "TBL_A";
	public static final String DB_TABLE_B = "TBL_B";
	public static final String DB_TABLE_C = "TBL_C";
	public static final String DB_ORDER_BY = "ORDER BY";
	public static final String DB_UPPER = "UPPER";
	public static final String DB_DISTINCT = "DISTINCT";
	public static final String DB_DUAL = "DUAL";
	public static final String DB_JOIN = "JOIN";
	public static final String DB_ON = "ON";
	public static final String DB_MAX = "MAX";

	// Table name
	public static final String TBL_SMS_TABLE = "SMS_TABLE";

	// Table column name
	public static final String COL_SMS_CREATESTAMP = "SMS_CREATESTAMP";
	public static final String COL_SMS_IBREF_NO = "SMS_IBREF_NO";
	public static final String COL_SMS_IC_NO = "SMS_IC_NO";
	public static final String COL_SMS_CUST_NAME = "SMS_CUST_NAME";
	public static final String COL_SMS_HP_NO = "SMS_HP_NO";
	public static final String COL_SMS_MESSAGE = "SMS_MESSAGE";
	public static final String COL_SMS_SERVICE = "SMS_SERVICE";
	public static final String COL_SMS_STATUS = "SMS_STATUS";
	public static final String COL_SMS_GUID = "SMS_GUID";
	public static final String COL_SMS_SDDATESTAMP = "SMS_SDDATESTAMP";
	public static final String COL_SMS_RCDATESTAMP = "SMS_RCDATESTAMP";
	public static final String COL_SMS_CHECK = "SMS_CHECK";
	public static final String COL_SMS_PRIORITY = "SMS_PRIORITY";

	// Pagination
	public static final String PAGINATION = "pagination";
	public static final String CURRENT_PAGE_NUMBER = "currentPageNumber";
	public static final String TOTAL_PAGE_NUMBER = "totalPageNumber";

	//	BVMC attribute name
	public static final String BV_CATEGORY_NAME = "name";
	public static final String BV_CATEGORY_STATUS = "status";
	public static final String BV_INT_YES = "0";
	public static final String BV_INT_NO = "1";
	public static final String BV_STRING_YES = "Yes";
	public static final String BV_STRING_NO = "No";
	public static final String BV_NOT_DELETED = "0";
	public static final String BV_DELETED = "1";
	public static final String BV_INT_ONLINE = "1";
	public static final String BV_INT_OFFLINE = "0";
	public static final String BV_STRING_ONLINE = "On-line";
	public static final String BV_STRING_OFFLINE = "Off-line";
	public static final String BV_MALAYSIA = "MAS";


	public static final String CATEGORY_PATH_KFH = "/kfh";
	public static final String REF_CONTENT_TYPE_BRANCH_INFO = "IB_BRANCH_INFO";
	public static final String TBL_IB_PRODUCT_FILTER = "IB_PRODUCT_FILTER";

	//column name
	public static final String COL_BRANCH_NAME = "BRANCH_NAME";
	public static final String COL_BRANCH_CODE = "BRANCH_CODE";
	public static final String COL_BRANCH_EMAIL = "BRANCH_EMAIL";
	public static final String COL_ACC_TYPE_CODE = "ACC_TYPE_CODE";
	public static final String COL_ACCOUNT_TYPE = "ACCOUNT_TYPE"; // Appl Type, E.g.: SV, CK
	public static final String COL_ACCOUNT_NAME = "ACCOUNT_NAME";
	public static final String COL_STATUS = "STATUS";
	public static final String COL_DELETED = "DELETED";
	public static final String COL_TRANSFERABLE = "TRANSFERABLE";
	public static final String COL_ENQUIRY_FLAG = "ENQUIRY_FLAG";
	public static final String FLAG_ENQUIRY = "0";
	public static final String FLAG_TRANSFERABLE = "1";
	public static final String FLAG_ESB = "2";
	public static final String OPTION_APPL_TYPE_BVMC = "appl.type.bvmc.";
	
	public static final String SERVICE_NAME = "serviceName";
	
	public static final String REVERT_LABEL = "Rev";
	public static final String CHARGES_LABEL = "Fee";
	

	/**
	 * Verify is the existing string is equals to zero or 'Yes'?
	 *
	 * @param p_sString A string value
	 * @return A boolean value true or false
	 */
	public static boolean isTrue (String p_sString)
	{
		if (BV_INT_YES.equals (p_sString) || BV_STRING_YES.equals (p_sString))
		{
			return true;
		}

		return false;
	}
}
