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

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

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

/**
 * 公差标准接口
 * 
 * @author Administrator
 */
public interface MscSpecImp {
	/**
	 * 验证公差标准
	 * 
	 * @param con
	 *            连接字符串
	 * @param designEntity
	 *            质量设计类
	 * @return boolean
	 * @throws Exception 
	 */
	String checkSpec(Connection con, String msc, DesignEntity designEntity,
			String flag) throws SQLException, Exception;

	/**
	 * 过滤公差标准
	 * 
	 * @param specs
	 *            公差标准集合
	 * @param dimater
	 *            外径
	 * @param height
	 *            壁厚
	 * @param DHProportion
	 *            径壁比
	 * @param HDProportion
	 *            壁径比
	 * @param innerProportion
	 *            内径
	 * @param lengthMax
	 *            长度上限
	 * @param lengthMin
	 *            长度下限
	 * @return List<DesignStdSicEntity>
	 */
	List<DesignStdSicEntity> fiterSpec(List<DesignStdSicEntity> specs,
			String dimater, String height, String DHProportion,
			String HDProportion, String innerProportion, String lengthMax,
			String lengthMin);
}
