package com.steering.pss.sale.order.craftDesign.dao;

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

import CoreFS.SA08.CoreXmlSqlParsersFactory;

/**
 * 在线机探盲区
 * 
 * @author Administrator
 * 
 */
public class ManInspectionDao {
	public boolean checkManInspection(Connection con, String designKey)
			throws SQLException {
		int count = 0;
		String sql = CoreXmlSqlParsersFactory
				.getSql("ManInspectionDao.getEDetePoint");
		PreparedStatement ps = con.prepareStatement(sql);
		ps.setObject(1, designKey);
		ResultSet rs = ps.executeQuery();
		if (rs.next()) {
			count = rs.getInt("COUNT");
		}
		rs.close();
		ps.close();
		if (count == 0) {
			return false;
		} else {
			return true;
		}
	}
}
