package com.steering.pss.sale.order.qualityDesign.Dao.imp;

import java.sql.Connection;
import java.sql.SQLException;

import com.steering.pss.sale.order.model.ComMscBlEntity;
import com.steering.pss.sale.order.model.ComPscEntity;

public interface BLQualityPreDaoImp {
	/**
	 * 查询备料码
	 * 
	 * @param con
	 *            连接字符串
	 * @param blCode
	 *            备料码
	 * @return ComMscBlEntity
	 * @throws SQLException
	 */
	ComMscBlEntity getMscBlEntity(Connection con, String blCode)
			throws SQLException;

	/**
	 * 通过备料码查询质量主键
	 * 
	 * @param con
	 * @param blCode
	 *            备料码
	 * @return String
	 * @throws SQLException
	 */
	String getDesignKeyByblCode(Connection con, String blCode)
			throws SQLException;

	/**
	 * 新增备料码技术评审主记录
	 * 
	 * @param con
	 * @param blEntity
	 * @throws SQLException
	 */
	void addSlmOrdDesignBl(Connection con, ComMscBlEntity blEntity)
			throws SQLException;

	/**
	 * 修改备料码技术评审主记录
	 * 
	 * @param con
	 * @param designKey
	 * @throws SQLException
	 */
	void updateSlmOrdDesignBl(Connection con, String designKey)
			throws SQLException;

	/**
	 * 验证备料码的规格在基础规格表里是否存在
	 * 
	 * @param con
	 * @param dimater
	 * @param height
	 * @return
	 * @throws SQLException
	 */
	String[] getBaseSpec(Connection con, String dimater, String height)
			throws SQLException;

	/**
	 * 备料码的四项标准查询产品码
	 * 
	 * @param con
	 * @param blEntity
	 * @return
	 * @throws SQLException
	 */
	ComPscEntity getPsc(Connection con, ComMscBlEntity blEntity)
			throws SQLException;

	/**
	 * 通过产品码与用途码查询冶金规范码
	 * 
	 * @param con
	 * @param psc
	 * @param useCode
	 * @return
	 * @throws SQLException
	 */
	String getMscByPscAndUseCode(Connection con, String psc, String useCode)
			throws SQLException;
}
