package com.steering.pss.sale.price.server;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.ArrayList;

import com.steering.comm.db.DBCommon;
import com.steering.comm.tools.EntityTool;
import com.steering.pss.sale.price.entity.SlmPriceBasepriceEntity;
import com.steering.pss.sale.price.entity.SlmPriceBasepriceExpEntity;
import com.steering.pss.sale.price.entity.SlmPriceBasepriceLineEntity;

import CoreFS.SA06.CoreReturnObject;
import CoreFS.SA08.CoreXmlSqlParsersFactory;
import CoreFS.SC01.CoreConstantData;


public class CorePriceCatolog extends DBCommon {

	 public CoreReturnObject queryBaseCatolog(String PRICE_VER_ID, String isValid) {
	     
	        String sql = CoreXmlSqlParsersFactory.getSql("CorePriceCatolog.getCatBase");
	        sql = sql.replaceAll("#PRICE_VER_ID#", PRICE_VER_ID);
	        sql = sql.replaceAll("#VALIDFLAG#", isValid);
	     
	        return this.getData(sql);
	        
	        
	    }
	 
	 public CoreReturnObject queryBaseCatologExp(String PRICE_HEAD_ID, String isValid) {
	     
	        String sql = CoreXmlSqlParsersFactory.getSql("CorePriceCatolog.getCatBaseExp");
	        sql = sql.replaceAll("#PRICE_HEAD_ID#", PRICE_HEAD_ID);
	        sql = sql.replaceAll("#VALIDFLAG#", isValid);
	      
	        return this.getData(sql);
	        
	        
	    }
	
}
