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

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

import com.steering.pss.sale.order.model.ComMscBlEntity;
import com.steering.pss.sale.order.qualityDesign.ReturnsModel.DesignEntity;

public interface BLQualityPreImp {
	/**
	 * 查询备料码
	 * 
	 * @param con
	 * @param blCode
	 *            备料码
	 * @return ComMscBlEntity
	 * @throws SQLException
	 */
	ComMscBlEntity getMscBlEntity(Connection con, String blCode)
			throws SQLException;

	/**
	 * 验证备料码
	 * 
	 * @param blEntity
	 * @return String
	 * @throws SQLException
	 */
	String checkMscBlEntity(Connection con, ComMscBlEntity blEntity)
			throws SQLException;

	/**
	 * 初始化备料码
	 * 
	 * @param con
	 * @param blEntity
	 * @param userName
	 * @return
	 * @throws SQLException
	 */
	String initBLCode(Connection con, ComMscBlEntity blEntity, String userName)
			throws SQLException;

	/**
	 * 验证基础冶金规范码
	 * 
	 * @param con
	 * @param designKey
	 * @param blEntity
	 * @return
	 * @throws SQLException
	 */
	DesignEntity checkMsc(Connection con, String designKey,
			ComMscBlEntity blEntity) throws SQLException;

}
