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

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import com.steering.comm.tools.EntityTool;
import com.steering.comm.tools.SqlBuilder;
import com.steering.pss.qcm.model.GenericEntity;
import com.steering.pss.sale.order.model.MscProcessEntity;

import CoreFS.SA08.CoreXmlSqlParsersFactory;

/**
 * 工序bean接口
 * 
 * @author Administrator
 * 
 */
public interface OperationDaoImp {
	/**
	 * 查询工序
	 * 
	 * @param con
	 *            连接字符串
	 * @param msc
	 *            冶金规范码
	 * @param mscPline
	 *            全程产线号
	 * @param processCode
	 *            工序
	 * @return MscProcessEntity
	 * @throws SQLException
	 */
	MscProcessEntity getOperation(Connection con, String msc, String mscPline,
			String processCode) throws SQLException;
	
	/**
	 * 是否是有效的二级工序
	 * @param con
	 * @param processCodec
	 * @return
	 * @throws SQLException
	 */
	public boolean BaseProcessCIsValid(Connection con, String processCodec) throws SQLException;

	/**
	 * 保存工序
	 * 
	 * @param con
	 *            连接字符串
	 * @param mscProcess
	 *            工序
	 * @param designKey
	 *            KEY
	 * @param wholeBacklog
	 *            全程途径码
	 * @param wholeBacklogDesc
	 *            全程途径描述
	 * @throws SQLException
	 */
	void saveOperation(java.sql.Connection con, MscProcessEntity mscProcess,
			String designKey, String wholeBacklog, String wholeBacklogDesc)
			throws SQLException;
	
	/**
	 * 是否存在镦拔扩字母
	 * @param modelCode
	 * @param con
	 * @return
	 */
	public boolean isExistEMeterialCode(String modelCode, Connection con);
}
