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.sale.order.model.ComBaseCustomRPlineEntity;
import com.steering.pss.sale.order.model.ComBasePlineEntity;
import com.steering.pss.sale.order.model.ComMscPlineRSpecEntity;
import com.steering.pss.sale.order.model.MscStationRPlineEntity;

public interface ProLineManageDaoImp {
    /**
     * 适用产线
     * @param con
     * @param processCode 工序代码
     * @return List<ComMscPlineRSpecEntity>
     * @throws SQLException
     */
    List<ComMscPlineRSpecEntity> getProLine(Connection con, String processCode)
            throws SQLException;

    /**
     * 查询产线与工序点对应关系
     * @param con 连接字符串
     * @param proLine 产线代码
     * @return List<MscStationRPlineEntity>
     * @throws SQLException
     */
    List<MscStationRPlineEntity> getStationRPline(Connection con, String proLine)
            throws SQLException;

    /**
     * 基础产线
     * @param con
     * @param processCode 工序代码
     * @return List<ComBasePlineEntity>
     * @throws SQLException
     */
    List<ComBasePlineEntity> getBaseLine(Connection con, String processCode)
            throws SQLException;

    /**
     * 查询加工、接箍加工适用产线
     * @param con 连接字符串
     * @param modelCode 扣型
     * @param specCode 产品规格
     * @param processCode 工序
     * @return
     * @throws SQLException
     */
    List<ComMscPlineRSpecEntity> getLineBySpec(Connection con,
            String modelCode, String specCode, String processCode)
            throws SQLException;

    /**
     * 通过最终客户、品名找认证产线
     * @param con 连接字符串
     * @param customerNo 客户编码
     * @param producCode 品名编码
     * @return List<ComBaseCustomRPlineEntity>
     * @throws SQLException
     */
    List<ComBaseCustomRPlineEntity> getLineByCustAndProduc(Connection con,
            String customerNo, String producCode) throws SQLException;
}
