using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using System.Data.OleDb;


using DataLinkMesWork;

//using SystemFramework;

namespace bizFacade
{
    /// <summary>
    /// 关键零部件追溯
    /// </summary>
    public partial class BaseDataSystemMES
    {
        /// <summary>
        /// SELECT * FROM MES_计划BOM_工位与名称 
        /// </summary>
        /// <param name="dt"></param>
        //static public void GetOpNameDataForMIS(out DataTable dt)
        //{
        //    string sql;
        //    sql = "SELECT * FROM MES_计划BOM_工位与名称 ";
        //    DataAccess.ExecuteDataTable_OleDb_Access(sql, out dt);
        //}
        /// <summary>
        /// 根据工位获得分线可以保存“物料追踪”的工位
        /// </summary>
        /// <param name="opName"></param>
        /// <param name="dt"></param>
        //static public void SubLineOpName(string opName,out DataTable dt)
        //{
        //    string lineName;
        //    dt = null;
        //    string sql;
        //    sql = "SELECT 线体类型 FROM MES_计划BOM_工位与名称 "
        //        + "WHERE 工位号 = '" + opName+"'";
        //    DataAccess.ExecuteDataTable_OleDb_Access(sql, out dt);
        //    if (dt != null)
        //    {
        //        if (dt.Rows.Count > 0)
        //        {
        //            lineName = dt.Rows[0]["线体类型"].ToString();
        //            sql = "SELECT DISTINCT 文件名称 FROM FROM MES_计划BOM_工位与名称 "
        //                 + "WHERE 线体类型 = '" + lineName + "'"
        //                 +" AND PC =1 ";
        //            DataAccess.ExecuteDataTable_OleDb_Access(sql, out dt);
        //        }
        //    }

        //}
    }
}
