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

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.steering.pss.qcm.model.ComBaseSpecEntity;
import com.steering.pss.sale.order.model.ComMscCastRForgEntity;
import com.steering.pss.sale.order.model.ComMscRollRUpsetEntity;
import com.steering.pss.sale.order.model.DesignMscBiltCEntity;
import com.steering.pss.sale.order.model.DesignMscBiltEntity;
import com.steering.pss.sale.order.model.DesignMscGzGgEntity;

public interface SpecManageDaoImp {
	/**
	 * 查询轧管规格
	 * 
	 * @param con
	 *            连接字符串
	 * @param dimater
	 *            外径
	 * @param height
	 *            壁厚
	 * @param gradeCode
	 *            钢种
	 * @param PlineCode
	 *            二级工序
	 * @return ComMscRollRUpsetEntity
	 * @throws SQLException
	 */
	List<ComMscRollRUpsetEntity> getRollSpec(Connection con, String dimater,
			String height, String gradeCode, String PlineCode)
			throws SQLException;

	/**
	 * 保存轧管规格
	 * 
	 * @param con
	 *            连接字符串
	 * @param designMscGzGgEntity
	 *            实体类
	 * @throws SQLException
	 */
	void saveRollSpec(Connection con, DesignMscGzGgEntity designMscGzGgEntity)
			throws SQLException;

	/**
	 * 查询锻造规格
	 * 
	 * @param con
	 *            连接字符串
	 * @param dimater
	 *            外径
	 * @param height
	 *            壁厚
	 * @return List<String[]>
	 * @throws SQLException
	 */
	List<String[]> getBiltSpec(Connection con, String dimater, String height,
			String outsStlPileFl) throws SQLException;

	/**
	 * 保存锻造规格
	 * 
	 * @param con
	 *            连接字符串
	 * @param designMscBiltEntity
	 *            实体类
	 * @throws SQLException
	 */
	void saveBiltSpec(Connection con, DesignMscBiltEntity designMscBiltEntity)
			throws SQLException;

	/**
	 * 查询铸造与锻造规格对应关系
	 * 
	 * @param con
	 *            连接字符串
	 * @param SpecCode
	 *            断面规格
	 * @return ComMscCastRForgEntity
	 * @throws SQLException
	 */
	List<ComMscCastRForgEntity> getBiltCSpec(Connection con, String SpecCode,
			String flag) throws SQLException;

	/**
	 * 保存铸造规格
	 * 
	 * @param con
	 *            连接字符串
	 * @param designMscBiltCEntity
	 *            实体类
	 * @throws SQLException
	 */
	void saveBiltCSpec(Connection con, DesignMscBiltCEntity BiltSpecs)
			throws SQLException;

	/**
	 * 根据外径、壁厚查询规格代码
	 * 
	 * @param con
	 *            连接字符串
	 * @param dimater
	 *            外径
	 * @param height
	 *            壁厚
	 * @return ComBaseSpecEntity
	 * @throws SQLException
	 */
	List<ComBaseSpecEntity> getBaseSpec(Connection con, String dimater,
			String height) throws SQLException;
}
