package com.steering.pss.plnsaleord.processOrder;

import com.steering.comm.db.DBCommon;

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

/**
 * BOM选择
 * 
 * @author Administrator
 * 
 */
public class CoreSelectBom extends DBCommon {

	/**
	 * 查询BOM
	 * 
	 * @param materialNo
	 *            物料编码
	 * @param msc
	 *            冶金规范码
	 * @param mscPline
	 *            制程
	 * @return CoreReturnObject
	 */
	public CoreReturnObject queryBom(String materialNo, String msc,
			String mscPline) {
		String sql = CoreXmlSqlParsersFactory.getSql("");
		Object[] params = new Object[] { materialNo, msc, mscPline };
		return this.getData(sql, params);
	}

	/**
	 * 查询轧管产线
	 * 
	 * @param designKey
	 *            工艺主键
	 * @param dInMaterialNo
	 *            轧管投入物料
	 * @param dOutMaterialNo
	 *            轧管产出物料
	 * @return
	 */
	public CoreReturnObject QueryLine(String designKey, String dInMaterialNo,
			String dOutMaterialNo) {
		String sql = CoreXmlSqlParsersFactory.getSql("");
		Object[] params = new Object[] { designKey, dInMaterialNo,
				dOutMaterialNo };
		return this.getData(sql, params);
	}
}
