天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QMFrameWork.Data;
using QMAPP.BLL;
namespace QMAPP.FJC.BLL.ProduceManage
{
/// <summary>
/// 获取缺陷类型
/// 作者:闫永刚
/// 日期:2016-8-16
/// </summary>
public class DefectTypeBLL : BaseBLL
{
/// <summary>
/// 获取缺陷类型
/// </summary>
/// <returns></returns>
public DataTable GetDefectType()
{
DataTable dt = new DataTable();
//2018-8-8 闫永刚修改
string sql = "SELECT MFGCODE AS DEFECTKEY,MFGNAME AS DEFECTVALUE,TYPE_CODE FROM T_AW_MENDRECORDERERP WHERE (MFGCODETYPE = 'DEFECTCODE') ORDER BY MFGCODE";
//string sql = "select DEFECTKEY ,DEFECTVALUE from T_AW_DEFECTTYPE ";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
dt = session.GetTable(sql, new List<DataParameter>().ToArray());
}
return dt;
}
}
}